Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Driving me nuts. How to convert ASCII to Hexidecimal
Message
De
12/12/2003 12:08:56
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00858429
Message ID:
00858645
Vues:
15
Hi Dave, how about the STRCONV(cSTR,15) ?


>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!!
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform