Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Importing file from Turbo Pascal into FPW
Message
From
03/09/1996 13:13:25
Sasha Burkich
Senior Systems Analyst
British Columbia, Canada
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00006871
Message ID:
00007189
Views:
45
>>I need to import some data from one file which was originally made in Turbo Pascal & for which I have record structure in FPW.
>>
>>OK, you'll say, if you have record structure, what's the problem?
>>
>>Problem is not in importing types of CHAR, STRING, INTEGER... Problem is in importing numbers which are presented in floating point (real, extended...)
>>
>>Does anyone have some routine or library which does this work?


>
>How about loading them in as a string and then converting with VAL? I've done this sort of thing in the past using mainframe files.

That solution is OK for ALL data types BUT the ones whish are represented in Floating Point and they are (for TP): real, single, double, extended & comp.

To explain more closely:

The Floating Point types store the binary representations of a sign, exponent & a significand. A represented number has the value

exponent
+/- significand x 2


Some external library written in C/C++ as PLB & FLL (because I need it both for DOS/Win) is solution, but I can't find it. (Please don't tell me to write it, because I don't do C ;)
Sasha Burkich
Consultant
Victoria, BC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform