Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Try Catch Finally
Message
De
12/01/2003 08:13:38
 
 
À
11/01/2003 14:11:04
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00740398
Message ID:
00740764
Vues:
17
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform