Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record Locking
Message
From
12/11/1999 18:23:15
 
 
To
12/11/1999 17:53:27
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00290812
Message ID:
00290823
Views:
17
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform