Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Try Catch Finally
Message
From
12/01/2003 08:13:38
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00740398
Message ID:
00740764
Views:
16
>Hi Alex,
>
>What is the Finally used for if it is always executed? Just place the Finally code after the End Try.
>
>What I was trying to determine if the try command had a way to execute code if no errors occurred.
>
>I am a beginner in Vb .net.
>
>Thanks
>Roland
>===========================================================================


I see Claudio already answered. As he says, depending on the error, the rest of the program (after End Try) may not run. Finally will, so it gives you place to have code to do whatever in any case (error or not).

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform