02-01-2012, 02:38 PM
Hi,
Please find below the attached piece of code. I was running it just to get an understanding of the functionality of "On Error Resume Next".
The query here is: Does "On error Resume next" declared once at the starting of the script handles the errors at all the steps in the script
or does it take care of an error only till the succeeding step where it was defined.
As for the code above i was expecting an error at line 5 and line 8 but did not encounter any.
Regards,
Pallavi
Please find below the attached piece of code. I was running it just to get an understanding of the functionality of "On Error Resume Next".
Code:
1.On error Resume next
2.a = 0
3.msgbox b
4.dafdsa,f,sdfsd
5.dasdgajrgjsgfjaity8w7etyeajmrhtwkjhtwhtu
6.l = 0
7.msgbox Err.Number
8.dfgdkjhgdkhgdkh67857368456834658
9.z = 0
10.msgbox Err.Number
The query here is: Does "On error Resume next" declared once at the starting of the script handles the errors at all the steps in the script
or does it take care of an error only till the succeeding step where it was defined.
As for the code above i was expecting an error at line 5 and line 8 but did not encounter any.
Regards,
Pallavi