Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
QBasic Random Data Files
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00456801
Message ID:
00457303
Views:
22
Morning, George.

>Since he hasn't posted the structure conversion might not be necessary. As I recall, QBasic only really had numeric types and strings. I don't really think that it had a date or date/time data type. Again, it's been awhile. Anyway, I was thinking that if no single precision values were in the structure, there wouldn't be a need for conversion of the double precision ones, since VFP does support that data type in its tables. Further, if all the integers were 32 bit, there'd be no work at all.
>
>As far as conversion goes, if he has a routine to convert the single and double precision floats, it might be easier for him that way. If he doesn't...well the entire conversion program (excluding the type declaration) probably wouldn't be more than a half a dozen lines or so of BASIC and would probably be faster than Fox (which would have to parse the file byte by byte). Further, there are a lot of folks here who would probably be happy to help him.
>
>My own reaction to this problem would be to simply write the conversion in QBasic. That way I wouldn't have to go through the process of proving (at least to myself) any conversion program for the singles and doubles. For the integers, I think most of us who have worked with the API have our own routines for dealing with them for both a signed and unsigned integers.

As I haven't heard of Ronald anymore, I think that maybe he has already found a solution (or just dessisted <g>). If not, I have to confess that your approach won. I have now a QB on my hands (well, actually my disk), and I was so easy to write the file handling portion, that I would walk the Basic way, too.

So, Ronald, if you're there and you still need it, I can send write a short Basic script to convert your file to something useful.

Bye!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform