>>I have a project that I am working on converting a QBasic or Quick Basic program to VFP. The data files that are used are saved as random data files, so the numeric data is unreadable to VFP. I have found out that the numeric data is saved in this format:
>>
>> I = integers - stored as 2 bytes
>> S = Single Precision - stored as 4 bytes
>> D = Double Presision - stored as 8 bytes
>> L = Long Integers - stored as 4 bytes
>>
>>Need some help with functions or routines to convert these into something that is readable to VFP so that I can save them into tables, has anyone done this before?
>>
>>Thanks in advance.
>>Ron
>
>I don't totally remember the quickbasic time, but don't it work if you simply split the string into known parts, and then convert it.
>if you don't know what way the data is stored, you can set up some test data, with some numeric values, and recover the coding from there.
Thats the problem, I do not know how the data is stored and I have tried to write test data to see if I can match the data files with no progress. I am told the data is stored in IEEE format and while doing some reading from an old basic book, numeric data could not be stored in random data files so it had to be converted first and to reconvert it to the numeric data you have to use a basic function CVI() and other like conversion functions. I was just looking to see if anyone else had to do something like this and already had VFP conversions already written.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only