Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get table size to check header corruption
Message
 
 
À
28/04/2003 11:12:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00781935
Message ID:
00782260
Vues:
11
>Hi,
>Ya, That why I use that formula to check the tablevalidate in VFP6.
>However, now I found that the result of formula may not same with ADIR/FIZE()
>Therefore, it is impossible for me to use that formula to check data loss.

Hi John,

If file is corrupted the difference is by record lenght, not by 1 byte. You can check if file size returned by ADIR() is equal calculated file size or calculated file size -1 and cosider it to be correct.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform