Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RLOCK() and ISRLOCK()
Message
De
25/06/1999 18:21:10
 
 
À
25/06/1999 17:58:17
Todd Cottengim
Alpine Land Information Services
Redding, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00234236
Message ID:
00234247
Vues:
23
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform