Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with the chr() method

Status
Not open for further replies.

clatimier

Programmer
Apr 11, 2003
26
FR
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 think you problem is that 150 is a windows char in OEM format.

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.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top