Hi everyone,
 
Has anyone ever successfully managed to insert a Hex code character in a string?. I want to use the extended character set to insert a symbol into a string. To see if I was using things properly, I first just tried to specify "z" by hex(7A) and octal codes(172).
 
Following what is stated in the GX documentation, the statement for the hex codes would be,
Strcpy_STR(sMessage, "\x07A");    //According to documentation, the escape sequence to insert a hex character is \xhhh
 
and for octal code would be,
Strcpy_STR(sMessage, "\172");    //According to documentation, the escape sequence to insert an octal character is \ooo
 
I tried several different permutations of the above statement but never got the results I expected out of thje sMessage string. I was however able to use \t for a horizontal tab, \a for a bell signal, etc so I did have success with other escape sequences.
 
 
Aaron Balasch
Sky Hunter Technologies Inc.
Suite 101, 1725 10th Avenue S.W.
Calgary, Alberta T3C 0K1
email: [EMAIL PROTECTED]
phone: 403-228-2175
fax: 403-244-7955

Reply via email to