Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quickest Way to Check for Invalid Reccount in Table Head
Message
 
À
07/02/2002 09:11:21
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00616383
Message ID:
00616590
Vues:
24
Usually table corruption is caused by the Network or Windows OS issues, but not by the VFP data engine.
Basocally to check the record number in the header you may do something like this:

lc=left(filetostr(tablefile),10)
?recc()=asc(substr(lc,8,1))*256^3+asc(substr(lc,7,1))*256^2+asc(substr(lc,6,1))*256+asc(substr(lc,5,1))

Best Wishes

>Sergey,
>I read the entire thread and do not like any of the solutions offered there. I am now much less confident in VFP than I have ever been. The primary task is saving data and it appears that there is an unfixed internal bug that prevents the product from doing the one thing it was designed for. What to do...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform