Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't get a record to lock?
Message
From
15/10/2000 22:05:44
Raymond Humphrys
Michigan Department of Community Health
Bath, Michigan, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Can't get a record to lock?
Miscellaneous
Thread ID:
00429650
Message ID:
00429650
Views:
47
I can not get the following code to lock a record. What can can cause this failure? I've got multilocks on, and reprocess set to automatic for testing.

STORE recno() to gcreclist2
DO WHILE NOT RLOCK('myfile')
RLOCK(str(gcreclist2), 'myfile') &&& Lock clinical record
IF NOT RLOCK()
Wait window "Somebody else is working on this record"
ELSE
UNLOCK
ENDIF
ENDDO

thanks
Some days it's not worth chewing through the leather straps ...
Next
Reply
Map
View

Click here to load this message in the networking platform