judgeking
asked on
Programmatically getting the line number of an error in VBScript
Basically, I want my script to log any errors it encounters and log the line number of the error. I'd like to do this just using VBScript. Is this possible?
ASKER
Thanks, but I'm already doing this type of error checking, what I want is something like this:
'main VBScript code here
'... some code
'... some more code
If Err.Number <> 0 Then
LogError Err.Number, Err.Description, Err.LineNumber
End If
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Oh, you *are* judgeking....ignore that bit... :-)
ASKER
OK, I didn't think it was possible to get the line number, but I just wanted a second opinion. Thanks.
you can read here
https://www.experts-exchange.com/questions/22111586/Can-you-please-give-me-a-simple-example-on-On-Error-GoTo-0-in-VB-Script.html