Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there any file curruption problem in VFP?
Message
De
04/04/2000 01:33:23
 
 
À
04/04/2000 01:16:56
Amit Abhangrao
Charmi Software Exports
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00354832
Message ID:
00354839
Vues:
12
Mallari,

> Is anyone seen any table curruption problem in VFP like there are problems in FPD2.6 of 'Not a database file'. And if VFP table file gets currupt, is there any tool to recover it?

That particular error is usually related to the table header having a record count that is different from the actual number of records in the table. That can happen in either FPD2.6 or VFP, often when someone turns off the computer during updating of a file, the power goes off, or if the network goes crazy, etc.

You can use commercially available tools such as SDT to recover, or you can go into the header record and change the record count (be careful). Often the count just needs to be decreased by 1, but not always. This can be done with a hex editor, or with low-level file i/o.

The header bytes in question are 4-7, if counting the first byte as 0 (same for 2.6 and VFP). Usually byte 4 is the one to change, since it is the Least Significant Byte (LSB) or the first pair.

The appendix of the Programmer's Guide contains the File Structure of a table.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform