Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get Hex to Dec and viceversa ?
Message
 
À
30/08/1999 09:51:50
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00258803
Message ID:
00259151
Vues:
26
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform