Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How is ISRLOCKED() supposed to work ?
Message
From
23/12/2002 11:25:42
 
 
To
23/12/2002 11:00:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00735386
Message ID:
00735397
Views:
5
The Help is hardly helpful on this one because it doesn't mention what you have observed. BUT... that is what it is designed to do - report on the lock status WITHIN the application issuing the function.

In other words, it tells you if you have already locked the record within this running instance of the application.

I can see no good use for this command, save possibly to make code a tad more understandable.


>Hi,
>
>I haven't seen any problems when using RLOCK(), it really returns what Microsoft says.
>But I am not understanding ISRLOCKED() when opening a shared table in the server from 2 different machines:
>
>Machine 1
>
>use table1 && having only 1 record
>? rlock() && Returns .T. and status bar says: Record locked
>? ISRLOCKED() && Returns .T.
>
>
>
>Machine 2
>use table1 && status bar says: Record 1/1 Record UNlocked
>? rlock() && Returns .F. It's OK
>? ISRLOCKED() && Returns .F.
>
>
>Why ISRLOCKED() still returns .F. and status bar shows Record Unlocked message on Machine 2 ?
>
>
>
>Thanks.
>
>Juan.
Previous
Reply
Map
View

Click here to load this message in the networking platform