Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Importing file from Turbo Pascal into FPW
Message
De
03/09/1996 13:13:25
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00006871
Message ID:
00007189
Vues:
44
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform