Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RLOCK() and ISRLOCK()
Message
From
25/06/1999 22:08:13
 
 
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:
00234277
Views:
24
>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?
>

Since the function returns whether you hold a lock on the record, it's behaving as designed. You need to try to acquire a lock to determine if it's lockable, unfortunately.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform