Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a part number
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00018858
Message ID:
00018930
Vues:
43
>DO WHILE NOT RLOCK()
>ENDDO
>REPLACE CLE WITH CLE+1
>UNLOCK

Uh, Michel -- I don't think so. :-) This doesn't allow for the fact that you might not be able to get a lock at all -- you'll be hung here forever.

Try this way:


SET REPROCESS TO AUTOMATIC
IF RLOCK()
liReturnValue = cle
REPLACE cle WITH cle+1
UNLOCK
ELSE
liReturnValue = -1 && or something else that isn't a real value
ENDif
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform