Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hex to decimal conversion
Message
 
À
03/11/2002 11:51:47
Ian Johnston
Computer Software Solutions
Woodland, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00718292
Message ID:
00718482
Vues:
43
>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
________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform