Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Public object with array...
Message
From
04/06/2001 15:33:45
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00513702
Message ID:
00514782
Views:
13
Chris,
ISRLOCKED() only checks if the current VFP instance has the record locked. As you've noticed this function doesn't work if another VFP instance has placed an RLOCK(). Here's what you could do:
lnSetReprocess = SET("REPROCESS")
SET REPROCESS TO 1
IF RLOCK()
   *-- record wasn't locked
   UNLOCK
ELSE
   *-- someone else has the lock
ENDIF
SET REPROCESS TO (lnSetReprocess)
HTH
>Hi Daniel - I am trying your suggestion of locking the users record but whatever I seem to do it allows the same record to be locked - in other words a ISRLOCKED returns .f. on the previously locked record. Any ideas?
Daniel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform