Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB Random Files
Message
De
19/12/1998 22:26:45
 
 
À
19/12/1998 21:21:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00169177
Message ID:
00169185
Vues:
29
>I would like to convert this file type, or creat a programme to convert this file type for use with VFP5. There is Long, Boolen and Double filed types in the file. Any help would be appreciated

You have several options here, none of them particularly attractive if what you want to do is handle as if it were a .DBF or database accessed via an ODBC driver. You can probably process the file using low-level file I/O, and convert the structures to native VFP datatypes by parsing the record and converting the binary data as written to VFP memory variables one record at a time.

Another alternative would be to create a COM Object in VB, and have VB handle the I/O and parsing for you. You would then have VFP instantiate the VB COM Object, and talk to it through an OLE interface. This would simplify the conversion process; The VB server would read and parse the data, and VFP would then pull data members from a collection. This would probably be the easiest to implement if you needed to read and write the file, since undoubtedly there's existing code in VB to do basic file handling.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform