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:
00457187
Views:
35
>>I'll whip out the old QB disks next week when I get back to office and check. Just a curiousity thing, mind you. In all honesty, I not be 100% certain.
>
>Go on! A bit of nostalgia is always nice! 8-)

I've been stuck in the 60s for 30+ years (accordingly to my wife< g >).

>>At any rate, probably the easiest thing to do would be to use the original language (now VB) to make the conversion. It would solve a lot of problems and be more efficient in terms of code. Of course, without the structure, the whole thing would be guess work.
>>From what I gather (read "assume") this old program is still functioning, this means two things. One, if that's the case, then writing a QBasic program for the conversion is definetly the way to go. Two, source code and the structure are available. As I recall, QBasic didn't have a compiler.
>
>Actually, he knows the structure. He just doesn't know enough about Basic. I think that having the functions (if I can fount them), it would be easier for Ronald to write the conversion in VFP.

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.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform