Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET REPROCESS TO 1 SECOND
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00005084
Message ID:
00005088
Vues:
31
>If you are inserting into a local table, and are worried about performance, why don't you setup a routine such as the following:
>
>DO WHILE !RLOCK("0",SELECT())
> WAIT WINDOW "Attempting Insert..." TIMEOUT 1 && or equivalent
>ENDWHILE
>INSERT INTO ...
>UNLOCK RECORD 0
>
>This code will attempt to lock the header (which I believe is necessary to insert records), insert and then unlock the file header.

Yes, this is a good piece of code. But, I don't want to put it everywhere. I want VFP to reprocess the lock until it succeed by itself. Thanks.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform