1.

How To Clear An Error In Vbscript?

Answer»

Err.CLEAR clear an ERROR.

Example:

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

Err.Clear clear an error.

Example:

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



Discussion

No Comment Found