Problem with the chr() method
Problem with the chr() method
(OP)
Hi
i'm using the chr() method to generate hexadecimal codes. When I use decimal code under 127 like chr(127), it works perfectly, but when i try to generate an hexa code with a decimal char from 150 to 255, the hexadecimal code generated isn't the good one !
does someone allready have the problem ?
Thx
i'm using the chr() method to generate hexadecimal codes. When I use decimal code under 127 like chr(127), it works perfectly, but when i try to generate an hexa code with a decimal char from 150 to 255, the hexadecimal code generated isn't the good one !
does someone allready have the problem ?
Thx
RE: Problem with the chr() method
You'll have to convert the string you're using to ansi with the OemToAnsi() function or the AansiToOem() function.
Hope this helps...
Check the manual for help on oemToAnsi()
Maurice H.