Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get Hex to Dec and viceversa ?
Message
From
30/08/1999 10:23:41
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00258803
Message ID:
00259157
Views:
29
>>>>How to get Hex to Dec and viceversa ? Any generic routine avl..
>>>>
>>>Hi Vinod,
>>>
>>>Use the following:
>>>* Hex to decimal
>>>* lchex is a hexidecimal value
>>>lnvalue = EVALUATE(lchex)
>>>* Decimal to Hex
>>>lchex = TRANSFORM(lnvalue, "@0")
>>
>>I really can't beleive it !!
>>
>>I thought it will be a big complicated routine, buts its much simpler then I thought....
>>
>>Thanks a lot !!
>
>Anytime. BTW, lchex mentioned about is a string and it should begin with '0x'. You can assign a hex value directly with lnvalue = 0xF2 (for example).

Initially i was little bit confused then i tried this

? EVALUATE(TRANSFORM(100, "@0"))

Thnks..
Previous
Reply
Map
View

Click here to load this message in the networking platform