mskmsiva
-
Total Posts
:
1
- Scores: 0
-
Reward points
:
0
- Joined: 1/18/2012
-
Status: offline
|
goto next line when error occurs
Wednesday, January 18, 2012 9:46 PM
( permalink)
Hi, When an error occurs in the first line, I want to skip that line and goto next line of code. If i use On Error Resume Next in VBScript, it skips all the line that are having the error. So please help me to skip a particular line if there is an error and continue to the next line.
<message edited by mskmsiva on Wednesday, January 18, 2012 9:48 PM>
|
|
|
|
ebgreen
-
Total Posts
:
8227
- Scores: 98
-
Reward points
:
0
- Joined: 7/12/2005
-
Status: offline
|
Re:goto next line when error occurs
Thursday, January 19, 2012 3:04 AM
( permalink)
Use On Error Resume next right before the line that you want to ignore an error on. Then use On Error Goto 0 right after the line that you want to ignore an error on.
|
|
|
|