Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I read a hex value from an ascii file
Message
From
22/11/1996 20:05:26
 
 
To
22/11/1996 18:08:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00013211
Message ID:
00013217
Views:
29
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform