Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public object with array...
Message
De
04/06/2001 15:33:45
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00513702
Message ID:
00514782
Vues:
14
Chris,
ISRLOCKED() only checks if the current VFP instance has the record locked. As you've noticed this function doesn't work if another VFP instance has placed an RLOCK(). Here's what you could do:
lnSetReprocess = SET("REPROCESS")
SET REPROCESS TO 1
IF RLOCK()
   *-- record wasn't locked
   UNLOCK
ELSE
   *-- someone else has the lock
ENDIF
SET REPROCESS TO (lnSetReprocess)
HTH
>Hi Daniel - I am trying your suggestion of locking the users record but whatever I seem to do it allows the same record to be locked - in other words a ISRLOCKED returns .f. on the previously locked record. Any ideas?
Daniel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform