Home
Cv Questions
Resume Example Questions
Resume Format Questions
Resume General Questions
Resume Cover Letter Questions
Government Resume Questions
Free Resume Questions
Executive Resume Questions
Resume Writing Questions
Resume Type Questions
Online Resume Questions
Resume Help Questions
Create Resume Questions
Resume Template Questions
Resume Sample Questions
Industry Specific Resume Questions
Resume How To Questions
Site Map
 
 
   
On Error Resume Next

Question:
If I use "On Error Resume Next" in a public function, does "On Error Resume Next" remain in effect after stepping out from the function, or have I to explicitely make it ineffective with an "On Error Goto 0" statement before steeping out from the function?


Answer:
The effect of On Error Resume Next is generally confined to the procedure where it is used. Once code exits that procedure it has the same effect as the On Error Goto 0 statement. The one major exception to this rule is when you call another procedure that has no error handling of its own after an On Error Resume Next statement. In this case, an error in the called procedure (the one with no error handling) will cause code execution to silently bail out of that procedure and continue on the next line in the calling procedure (the one where On Error Resume Next is in operation).


What is Your answer?


 
Privacy Policy