Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOPEN() to go exclusive
Message
De
02/08/2003 12:27:39
 
 
À
02/08/2003 12:26:09
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00816200
Message ID:
00816204
Vues:
21
>I have never tried this but you might try renaming the file instead of fopen(). You could wrap this in a try catch loop and if you get an error assume that it is in use. If rename is successful, then you know it was not in use and another user can't access the file.

Well, in this case, we might as well just use TRY CATCH with what we have now. But, I was looking for a way to avoid going into that. I have never used such an approach. I try to always do code that will work.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform