General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only