Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TRY...CATCH...FINALLY to reprocess some code
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01345690
Message ID:
01346259
Views:
9
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
Previous
Reply
Map
View

Click here to load this message in the networking platform