Someone asked me today how to convert a decimal number to hexadecimal in order to print it out, in VFP.
I found that the old faithful TRANSFORM function will do this nicely. If you print TRANSFORM(255, '@0'), you will get the string '0x000000FF', which is hex for 255.
I was a little surprised to learn that the HEX( ) function from VB isn't available in FoxPro, but you can build your own....
I found that the old faithful TRANSFORM function will do this nicely. If you print TRANSFORM(255, '@0'), you will get the string '0x000000FF', which is hex for 255.
I was a little surprised to learn that the HEX( ) function from VB isn't available in FoxPro, but you can build your own....