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

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