Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RLock()
Message
From
15/12/2004 00:42:38
 
 
To
14/12/2004 14:29:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00969057
Message ID:
00969334
Views:
9
Hi All

I have found the issue. If there is an ON ERROR in effect then RLOCK() will just return .F., if the record cannot be locked, without any message on the status bar. Interesting that the ON ERROR routine itself is *not* actually called. It is simply a case of if there is an ON ERROR defined that affects the behaviour of RLOCK().

Repro:
ON ERROR X=1  &&  <= comment/uncomment this line to create/hide the status message "Attempting to lock..."

USE myFile SHARED
GO TOP
? "Instance #1"
? RLOCK()
=INKEY(0)
Thanks to all.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform