Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TRY...Catch problem
Message
De
02/10/2014 02:33:01
 
 
À
01/10/2014 18:12:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01608628
Message ID:
01608649
Vues:
54
You clearly fail to realize that Flock() is not a command, it's a function.
Commands raise errors, which you can trap with a Try-Catch-Endtry construct.
Functions return a value, .T. or .F. for Flock(), which you can trap with a If-Else-Endif construct.

>
>Thanks to all for all the help.
>
>Based on my testing, I think I want to use SET REPROCESS TO 1.
>
>In this case, if the other program said USE foo EXCL, I will get a 1705 error. If the other program said USE foo shar, flock(), I will get a 108 error.
>
>If, however, I use the SET TABLEVALIDATE TO 0, then if the other program said USE foo EXCL, I will get a 1705 error, but if the other program said USE foo SHAR, flock(), then VFP allows me to proceed without error!. This not what I want!
>
>Thanks again for the help
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform