Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hex as string
Message
From
03/02/2008 12:44:45
 
 
To
03/02/2008 12:40:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01288749
Message ID:
01288761
Views:
9
>>>I see some characters in the VFP hex viewers, and to do manipulation on a file, I need to convert this to a string; e.g.: MyString = chr(0xFF) + chr(0x7F) + ...
>>>
>>>I was wondering whether there was a less cumbersome way to express a hexadecimal dump as a string.
>>
>>It was a while ago (more than ten years), but PCTOOLS had a hex editor that was pretty good.
>
>Actually, the hex viewer that comes with VFP was enough for my needs - to analyze the file format.
>
>I am doing the actual data conversion with VFP (reading the file into a memory variable).
>
>The question referred to simply converting a string, which the hex editor shows as a series of hex digits, into a "normal" string. For instance, in the hex editor I see:
>
>414243
>
>I would need the result: "ABC".
>
>I can specify this as chr(0x41) + chr(0x42) + chr(0x43), but I was wondering whether there was any simpler method.

Thanks Hillmar. Now I understand. By the way, I looked at your city on Google Earth. How many folks live there?
I ain't skeert of nuttin eh?
Yikes! What was that?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform