Feb 21, 2001 #1 xue Programmer Feb 5, 2001 12 US I have a statement like On Error GoTo CheckError .... CheckError: .... but it is giving me the syntax error on this one, can anyone help? I use it on ASP/vbscript
I have a statement like On Error GoTo CheckError .... CheckError: .... but it is giving me the syntax error on this one, can anyone help? I use it on ASP/vbscript
Feb 21, 2001 1 #2 vasah20 Programmer Feb 16, 2001 559 US you can't error check in VBScript like you can in VB. error handling is like so: On Error Resume Next ... then, after your connection calls or anything else that you think could raise an error, you write if Err.number <> 0 then Response.write "There was an error" Err.clear End if yes - the VBScript implementation of error handling is horrible at best. hope this helps. Upvote 0 Downvote
you can't error check in VBScript like you can in VB. error handling is like so: On Error Resume Next ... then, after your connection calls or anything else that you think could raise an error, you write if Err.number <> 0 then Response.write "There was an error" Err.clear End if yes - the VBScript implementation of error handling is horrible at best. hope this helps.
Feb 22, 2001 Thread starter #3 xue Programmer Feb 5, 2001 12 US Thank you very much. I think that is very helpful. Upvote 0 Downvote