Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More RLOCK Stuff
Message
De
17/03/1999 13:45:03
Ian Matthews
Up & Running Technologies Inc
Chestermere, Alberta, Canada
 
 
À
17/03/1999 13:15:34
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00198638
Message ID:
00198731
Vues:
22
I have just been playing with it and found that UNLOCK ALL does nothing.

Because of space constraints I had SET STATUS OFF, but I turned it (and TALK) back on to see what was happening. I found that if I REM (*) out my IF FLOCK code the records lock/unlock as expected using OPTIMISTIC ROW BUFFERING but if:
< MESSAGEBOX("This record is being used by someone else on the network.",64,"RECORD IN USE")
< recinuse=.t.
is called then the record beomes locked. I know I have missed something because I check for .F. in IF RLOCK()=.F. when I should be checking for .T..

I therefore beleive that simply using IF RLOCK() causes a record to lock. There must be a way to check if a record is in use using RLOCK.

>PMFJI,
>What happens if you do include an UNLOCK following the tablupdate?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform