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:
01223983
Vues:
31
This message has been marked as the solution to the initial question of the thread.
Then use on error. I posted my OpenTble function here before, please search for this.

>In this particular app, I am stuck with VFP 6.0 due to the operating system requirement. I don't think that VFP 6.0 has Try/Catch, does it? I cannot upgrade the particular machine that this program will run on until I also upgrade the DOS Hand-Held Barcode Scanners to Windows Scanners.
>
>>For a table forget about FOPEN, use try/catch as I suggested. Now, what if the file you're trying to append from is also opened by someone? Though AFAIK it should not give your a problem.
>
>>Just wrap the whole code in try/catch.
>
>>If you want to be able to retry, then it's a different story, need to think a bit more, but currently working on something else.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform