Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
If file is used by another exclusively
Message
De
13/11/2008 21:28:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
13/11/2008 21:16:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01361833
Message ID:
01361839
Vues:
14
>Sorry, using v.7.0

The situation is quite similar; but instead of using TRY/CATCH you have to use ON ERROR.

The point is, when accessing anything outside your application, many things can go wrong. The table might not exist, the user may not have sufficient privileges in the folder, or, of course, the file may be in use. So, it makes sense to do some error checking.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform