Description Property (VBScript)
Returns or sets a descriptive string associated with an error.
Syntax
object.Description [= stringexpression]
Arguments
object
Always the Err object.stringexpression
A string expression containing a description of the error.
Remarks
The Description property consists of a short description of the error. Use this property to alert the user to an error that you can't or don't want to handle. When generating a user-defined error, assign a short description of your error to this property. If Description isn't filled in, and the value of Number corresponds to a VBScript run-time error, the descriptive string associated with the error is returned.
On Error Resume Next
Err.Raise 6 ' Raise an overflow error.
MsgBox ("Error # " & CStr(Err.Number) & " " & Err.Description)
Err.Clear ' Clear the error.
Requirements
Applies To: Err Object (VBScript)
See Also
Err Object (VBScript)
HelpContext Property
HelpFile Property (VBScript)
Number Property (VBScript)
Source Property (VBScript)