Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Driving me nuts. How to convert ASCII to Hexidecimal
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00858429
Message ID:
00858636
Vues:
16
As Neil posted transform() can be used but it only works with numeric values. If you are trying to convert a string you'll have to do it one character at a time:
lcHex = ""
for i = 1 to len( lcStr )
   lcHex = lcHex + right( transform( asc( substr( lcStr, i, 1 ) ), "@0" ), 2 )
endfor
>What is the VFP syntax for converting ASCII to Hexidecimal. It is driving me nuts and it is not in the Help file and I knew how to do it once upon a time. Thanks for the feedback!!
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform