Microsoft® Visual Basic® Scripting Edition
Description Property
| Language Reference 
| Home | Site Map |

 

See Also                  Applies to


Description
Returns or sets a descriptive string associated with an error.

Syntax

object.Description [= stringexpression]

The Description property syntax has these parts:

PartDescription
objectRequired. Always the Err object.
stringexpressionOptional. A string expression containing a description of the error.

Remarks

The Description property comprises a short description of the error. Use this property to alert the user to an error that you cannot or do not 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 string returned by the Error function is placed in Description when the error is generated.


© 1996 by Microsoft Corporation.