Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hex as string
Message
 
 
To
03/02/2008 12:44:07
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01288749
Message ID:
01288785
Views:
12
>The hex viewer shows me a series of bytes, as hex characters, e.g.:
>
>414243, which is equivalent to "ABC".
>
>The hex viewer I only use (in this case) to examine the file format.
>
>To do a "search-and-replace" (after loading the file with FileToStr()), I might search for the string chr(0x41) + chr(0x42) + chr(0x43), but I was wondering whether there was a less cumbersome form to convert hex digits (the way I see them in the hex viewer) into a standard string.
lcHex = "414243"
? STRCONV(lcHex, 16)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform