I have a modify procedure that allows users to enter comments, in both Chinese and English. I need to make sure that the english comments contain no Chinese characters.
When I type english characters (E LINE 1), it translates to hex: C540D3C9D5C540F14040404040404040404040404040404040404040404040404040
Within in this HEX character string the POSIT sub-routine finds the characters '0F', however this in not really the "shift-out" representation, it's just part of the string because of the line I typed (E LINE 1).
I could check each individual character, however I wanted to know if there is a better way to do this?This message has been edited. Last edited by: Kerry,
WebFOCUS 7.6.4
August 13, 2012, 02:07 PM
Dan Satchell
Would the PATTERN function help?
WebFOCUS 7.7.05
August 17, 2012, 11:02 AM
Kerry
FYI, the issue is resolved: I created a routine to extract each byte from the comment and then converted that byte to Hexadecimal using the UFMT sub-routine. I then checked for the shift-in/shift out characters (0E and 0F).
Thanks gjk for sharing the info with all.
Cheers,
Kerry
Kerry Zhan Focal Point Moderator Information Builders, Inc.