Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RLock()
Message
De
15/12/2004 00:42:38
 
 
À
14/12/2004 14:29:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00969057
Message ID:
00969334
Vues:
12
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform