Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On error
Message
From
04/04/2001 11:54:15
 
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
On error
Miscellaneous
Thread ID:
00491933
Message ID:
00491933
Views:
39
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

Next
Reply
Map
View

Click here to load this message in the networking platform