Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Try Catch Finally
Message
From
11/01/2003 14:23:38
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00740398
Message ID:
00740675
Views:
18
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. :)
Claudio Lassala
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform