1.

How to get the error details in VBScript?

Answer»

Err.Number gives the error number and Err.Description gives error description.

Example −

Err.Raise 6   ' Raise an overflow error.MsgBox "Error # " & CStr(Err.Number) & " " & Err.Description


Discussion

No Comment Found