Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting record lock without locking it
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00809609
Message ID:
00809677
Views:
18
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform