Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Corrupted Tables
Message
From
08/05/2007 12:36:22
 
 
To
08/05/2007 08:23:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01223322
Message ID:
01223465
Views:
25
>I wrote this program a long time ago (1993)
7 Years before I first used vfp...

Well, somewhere in all this time we got Header() and Recsize().
Of course you get the length of header and record for the
alias in the current workarea. If a table is corrupt, you
may not be able to use it to use these 2 functions, but if
it's just a misfit of reccount info in the header and file
length you can SET TABLEVALIDATE TO 0, then use the table and
get these 2 infos.

Also you can use Bintoc() to stuff the good reccount into the
header.

Nevertheless you need low level file access functions to change
the header.

Bye, Olaf.
Previous
Reply
Map
View

Click here to load this message in the networking platform