Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Try Catch Finally
Message
From
12/01/2003 13:06:18
 
 
To
11/01/2003 14:23:38
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00740398
Message ID:
00740810
Views:
17
Hi Claudio,

Thanks for your help.

It would be nice to have a no errors clause in the try, catch, finally that way you could execute code if no errors occured without having to set flags (switches) to determine if an error occurred. When you update a table and need to reset other flags/switches like bAddMode, bEditMode etc.

Thanks again!
Roland
===========================================================================

>Hi, Roland.
>
>>What is the Finally used for if it is always executed? Just place the Finally code after the End Try.
>
>Don't do that. If an error occurs inside a Try/Catch, the lines after End Try may not be executed at all. On the other hand, the Finally block will always execute. Got it?
>
>
>>What I was trying to determine if the try command had a way to execute code if no errors occurred.
>
>yes, definitely the Finally block is the way to go. :)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform