Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

On Local Resume Next

Status
Not open for further replies.

joinme

IS-IT--Management
Jan 12, 2003
20
DE
Hi,

What is the different between "On Error Resume Next" and "On Error Resume Next" ?

Thanks.
 
Sorry, typo

I meant "On Error Resume Next" & "On Local Error Resume Next"
 
Is this a trick question? :)

Mapman Assume nothing, question everything, be explicit not implicit, and you'll always be covered.
 
No it's not. This is the first time I saw "On Local Error Resume Next" in a piece of code. Just wondering what is the diff between these 2.
 
The way I understand it is localization.

Using the On Local Error Resume Next will only provide error trapping to the immediate function/sub. It will not be used if a subsequent error occurs outside of the function/sub.

Here's what Microsoft says about it...

"If local error-handling is not enabled in a procedure and an error occurs, control is passed back through the call stack until a procedure with error-handling enabled is found and the error is handled at that point. If no procedure in the call stack is found to have error-handling enabled, an error message is displayed at that point and execution stops or the host handles the error as appropriate."

HTH,

Mapman Assume nothing, question everything, be explicit not implicit, and you'll always be covered.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top