Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
FPT next free block
Hi All,
We occasionally encounter a problem with an FPT file which will cause an error when the relevant table is opened from the EXE but when opened from the command window appears OK. Oddly, just the act of opening in the command window automatically means that subsequent access from the EXE is OK.
I've discovered that opening such a damaged table from the command window changes the value of the third byte of the FPT header (part of the 'Location of next free block') - so it appears there is some sort of automatic correction going on.
I figure if VFP can work out what the next free block value should be then I should be able to do the same but can't find any info on this (except what VFP help says on 'Memo file structure'). Anyone know how it's done ?
Regards,
Viv
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement