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

Click here to load this message in the networking platform