Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BASIC *.dat file Export utility ?
Message
De
01/12/2004 22:38:53
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
BASIC *.dat file Export utility ?
Divers
Thread ID:
00966262
Message ID:
00966262
Vues:
47
Hi All

I am working with a legacy MS Basic application. Yes, I thought it was a "toy" application too. But as it turns out, the application if fairly complex and some pretty good sized businesses are using it daily. As you know, Basic data is stored in flat file ASC files with an extension of ".dat". I can open the files and parse them etc using FOPEN() and FGETS() and then write out to a table.

However, I loose some of the information. For example an Integer value is represented as a character string that the Basic interpreter reads as an integer. When I parse the ASC string, I get something like "þþ". The BASIC application is not well documented, so figuring out all of the columns and the intended type will be very time consuming and very tedious. Did I mention that there are more than a few tables to be converted? I really don't want to be doing this for the next year.

My question, is whether someone knows of a utility (in any flavor of Basic, or preferably in VFP), that can convert/export/import *.dat files into anything else that has a row, column format (Access, Excel, XBase tables or??).

TIA
Don Lowrey
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform