Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On error
Message
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
On error
Divers
Thread ID:
00491933
Message ID:
00491933
Vues:
40
Is there any discussion on "On Error Goto 0" as used in the following. I use this format but it seems like "On Error Goto 0" is going to happen without actually coding it to do it ... Thoughts?
On Error Goto PROC_NAME_Error
.
. ' code stuff would be here
.
On Error Goto 0
Exit {PROCEDURE_TYPE}

PROC_NAME_Error:
	MsgBox "Error " & CStr(Err.Number) & _ 
     " in procedure {PROCEDURE_NAME} of the ... : " & _ 
     Err.Description, vbExclamation, App.Title
On Error Goto 0
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform