Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hex to decimal conversion
Message
 
To
03/11/2002 11:51:47
Ian Johnston
Computer Software Solutions
Woodland, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00718292
Message ID:
00718482
Views:
39
>Is there a way to convert hex back to decimal value ?
>
>TIA

Hex -> Decimal:
lcHex = "FF"
? VAL("0x" + lcHex)
Decimal to Hex:
lnDec = 255
? TRANSFORM(lnDec, "@0")
* or
? SUBSTR(TRANSFORM(lnDec, "@0"),3)
*or
? RIGHT(TRANSFORM(lnDec,"@0"),INT(LOG(lnDec)/LOG(16))+1)
Luis María Guayán
Tucumán, Argentina
________________________________
SysOp de www.PortalFox.com
Nada corre como un zorro
________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform