Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Driving me nuts. How to convert ASCII to Hexidecimal
Message
From
12/12/2003 12:08:56
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00858429
Message ID:
00858645
Views:
16
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform