Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Corrupted Tables
Message
De
08/05/2007 12:36:22
 
 
À
08/05/2007 08:23:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01223322
Message ID:
01223465
Vues:
18
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform