Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hex as string
Message
From
03/02/2008 12:46:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
03/02/2008 12:44:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01288749
Message ID:
01288762
Views:
10
>>>>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 heard estimates approaching a million, but that may be hearsay. In any case, that would be "bigger Cochabamba", i.e., several municipalities that are so close together that you don't know when you are leaving one "city" and entering the next "city".
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform