Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record Locking
Message
De
12/11/1999 18:23:15
 
 
À
12/11/1999 17:53:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00290812
Message ID:
00290823
Vues:
15
>When trying to use the "ISLOCKED()" function to determine if a record is locked I getting strange results. For example:
>
>I open a table with exclusive off on two machines. I lock it using the "LOCK()" function on one machine. On the other I run this code
>
>IF ISLOCKED()
> messagebox("Record is locked")
>ELSE
> messagebox("Record is UnLocked")
>ENDIF
>
>The file being tested has only 3 records and I am locking the first one. This function returns unlocked on all three records. However, if I try to lock record number one on the second machine using "RLOCK()" It fails because the record is locked.... HELP

ISLOCKED() is a pretty useless function. It only tells you if you have a lock on a record, not if another workstation has one.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform