Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement