Article ID: 155389
Article Last Modified on 6/29/2004
x = 0xff WAIT WINDOW STR(x) y = 0xefff WAIT WINDOW STR(y)The WAIT WINDOW commands report the numbers 255 and 61439. The zero and the x (0x) in front of the hexadecimal value tells Visual FoxPro to treat the proceeding values as hexadecimal values.
? TRANSFORM(x,"@0") ? TRANSFORM(y,"@0")The TRANSFORM() function converts the decimal values back to hexadecimal form. The zero (0) format code directs the TRANSFORM() function to output hexadecimal numbers. The output is always an eight-digit hexadecimal value preceded by 0x.
95717 How to Convert Decimal Numbers to Hexadecimal Numbers
Keywords: kbhowto KB155389