Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get Hex to Dec and viceversa ?
Message
 
To
30/08/1999 09:51:50
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00258803
Message ID:
00259151
Views:
24
>>>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).
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform