Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell if file is open exclusively ?
Message
 
À
15/05/2001 09:52:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00503929
Message ID:
00549793
Vues:
22
I am putting together a maintenance application and I want to grab
dbc
dct
dcx
dbf
cdx
fpt
ini
prg
exclusively when the app starts so I can do stuff to the files (or just quit if everything can't be grabbed). It looks like VFP's locking is ignored by programs like Excel, but Excel is fine with opening a DBF and preventing VFP from USEing it. What would you recommend for doing an OS-exclusive file lock for everything?



>This does not reliably work. The only reliable way to tell if a file is open exclusively is to try to USE it exclusively and then trap the error.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform