Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RLOCK() and ISRLOCK()
Message
From
25/06/1999 18:21:10
 
 
To
25/06/1999 17:58:17
Todd Cottengim
Alpine Land Information Services
Redding, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00234236
Message ID:
00234247
Views:
22
>We have just purchased VFP6 and are starting to experiment with mulit-user appliactions. We (my programming partner and I) each used a table located on my computer. Mulitlocks in ON, Exlusive is OFF, and Reprocess is set to 1. If I lock a record (manually with RLOCK()) and then issue ?ISRLOCK() from the command window, it returns a true. If my partner issues ?ISRLOCK() from his machine on the same record, the return value is false. On the surface, ISRLOCK() seemed to be a great way to tesst for a lock without actually locking, but only seems to work on the machine the ISRLOCK() is issued from. Any thoughts or comments?
>
>Todd Cottengim
>Alpine Land Information Services.

Yup, you've got it right. The second computer can attempt to RLOCK() and if it can't RLOCK() will return .F.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform