Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TRY...CATCH...FINALLY to reprocess some code
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01345690
Message ID:
01346259
Vues:
10
Hi Mark,

>What if it fails inside of Block and an error handler pick up an error? will it still work in the way you are showing?

No, TRY..CATCH and error handlers are completely different concept that don't mix very well on a greater scale. If your code block calls methods of object that have error handlers, the error hander is executed. You would need to add code to the error handler that throws an exception in this case. You probably need some sort of flag to trigger this behavior, such as a private variable or a configuration file.
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform