Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Used() function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00217407
Message ID:
00217453
Vues:
18
Sylvain,

You would get an FLOCK() even if other users had the table open but didn't have any locks. The only way to do this is to resort to an ON ERROR routine. This is actually a good way to do it anyway because as you point out even if you could check first to see if anyone had the table open someone could still open it between the time you checked and the time you opened it.

>You could use the table and check the result of FLock() before trying to use it exclusively. You still have a chance that another user open the table between the time that you close the table and reopen it exclusively, though.
>
>>IS THERE A FUNCTION to determine if a file is already open ON THE NETWORK b4 trying to use it exclusively. And without resorting to an error routine?
>>Wondering.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform