Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Protecting Tables against power fail - FLUSH doesnt work
Message
De
03/12/2001 06:10:31
Cristian Tenea
Aquila Part Prod Com
Ploiesti, Roumanie
 
 
À
20/11/2001 16:16:37
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00582519
Message ID:
00588621
Vues:
39
Hi,

I have a big problem with behaviour like "user A overwrites the new record added by user B"(with his new record) and get index wrong sametime; I try to put FLUSH after END TRANSACTION but did not solve the problem; If I put a GO RECNO() the record counter is forced to update?



> Also, locate for .f. will go beyond EOF and get us nowhere. There's a reason why Go Reccount() should be used, because the internal behavior of the RecCount() function forces an update of the record counter in the header - in some cases I know it was used (in VFP5, but the behavior may still be there) to avoid the "user A overwrites the new record added by user B" error. For all I know, we could do this on the first record as well, but I was sort of worried whether it would endure the wear and tear :). Actually, this should force the last record to be written, specially as this opens the table without buffering.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform