Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FPT next free block
Message
From
19/07/2003 04:56:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
FPT next free block
Miscellaneous
Thread ID:
00811749
Message ID:
00811749
Views:
50
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
Next
Reply
Map
View

Click here to load this message in the networking platform