Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More RLOCK Stuff
Message
From
17/03/1999 13:45:03
Ian Matthews
Up & Running Technologies Inc
Chestermere, Alberta, Canada
 
 
To
17/03/1999 13:15:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00198638
Message ID:
00198731
Views:
21
I have just been playing with it and found that UNLOCK ALL does nothing.

Because of space constraints I had SET STATUS OFF, but I turned it (and TALK) back on to see what was happening. I found that if I REM (*) out my IF FLOCK code the records lock/unlock as expected using OPTIMISTIC ROW BUFFERING but if:
< MESSAGEBOX("This record is being used by someone else on the network.",64,"RECORD IN USE")
< recinuse=.t.
is called then the record beomes locked. I know I have missed something because I check for .F. in IF RLOCK()=.F. when I should be checking for .T..

I therefore beleive that simply using IF RLOCK() causes a record to lock. There must be a way to check if a record is in use using RLOCK.

>PMFJI,
>What happens if you do include an UNLOCK following the tablupdate?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform