Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I read a hex value from an ascii file
Message
De
22/11/1996 20:05:26
 
 
À
22/11/1996 18:08:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00013211
Message ID:
00013217
Vues:
33
>I have a client who wants a data file imported into dbf format. The majority of the file is readable, and has been successfully imported into a table. The file contains inventory balances, and those are written in a hexadecimal value in the same record. Is there a good way to read that value and convert it into numbers that VFP can understand?
>
>jd

If the ASCII file is in a standard format and you can import it directly, use a field of type float if the hex value is float (most probably) or a field of type integer if the hex value is integer.

If you can't import it directly in a database, read it as a char string and write an UDF to transform it.

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform