Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hex as string
Message
De
03/02/2008 12:44:45
 
 
À
03/02/2008 12:40:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01288749
Message ID:
01288761
Vues:
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 ain't skeert of nuttin eh?
Yikes! What was that?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform