Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check to see if a file is open
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01223969
Message ID:
01223970
Vues:
15
>How do you check to see if a file is open without attempting to open it first?
>
>I looked at FOPEN(cFileName, nAttribute) and wonder if this would do the job, or is there more to this? I have done this a long time ago, I think.

Yes, FOPEN should work for you.

For tables, though, the best way is to try to open in try/catch block.

What exactly is the purpose? I think there are ways of figuring if the file is opened, but they may be non-trivial.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform