Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting record lock without locking it
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00809609
Message ID:
00809677
Vues:
16
>Is there a way to deted wheather or not a record is locked without actually changing it's status?
>
>Using RLock() does not tell me what the status was prior to calling it.

You can infer it though.
If it succeeds, the record was unlocked - or you had it locked.
If it fails, it was already locked.

Checking for a lock on its own is not a useful function.
In the microsecond or so it takes to go to your next line of code, someone could lock the record.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform