Is there anything in VB script comparable to try catch statemnts in C# script. I have sequence of steps in the sub and if there is some kind of error I need to exit the sub and post an error. Is it possible to do that ?
For VBscript specifically, you can 'try' the following:
' This would be your try. The "On Error Resume
' Next" will keep it from dying right there
' with no message. Note, in all your other
' functions, do not include the Err.Clear.
On Error Resume Next