Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Structure of Valid DbaseIV DBF File
Message
De
02/04/2002 08:13:09
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Structure of Valid DbaseIV DBF File
Divers
Thread ID:
00639874
Message ID:
00639874
Vues:
42
Hello All,

I am currently creating a class that validates files passed to it. By that I mean that if the file has been passed as Comma Delimited file type or Tab Delimited the class checks the file for the delimiting character.

I have had problems in the past with people sending ACT database files into us and our processors not being able to USE the DBF file as they would normally.

Therefore I would like to verify that any DBF files passed to this class are valid DBaseIV DBF files as used in Visual FoxPro (6.0).

To this end I was wondering if anyone could direct me towards any information pertaining to the structure of DBF files that I could then write something to check the file with FOPEN() etc. Rather than attempting to USE the table and handling the ensuing error.

As I understand it each DBF contains header information within it. Is there something common about the Header I can look for?

Many thanks for any help that can be provided.

Regards,

Ben
Ben Sugden

"Remember to enjoy hunting - and that means relishing the search for the product that has never been advertised or placed handily at the front of the shop; Life begins on the uppermost shelf, avoid guide books and top 10's like the plague." - Ramsey Dukes
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform