Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript Err Object

The VBScript Err object contains information about run-time errors.

Methods: VBScript Err Object

VBScript Err Object Clear Method

Clears all property settings.

VBScript Err Object Raise Method

Generate a run-time error.

Properties: VBScript Err Object

VBScript Err Object Description Property

The descriptive string associated with an error.

VBScript Err Object HelpContext Property

A context ID for a topic in a Windows help file.

VBScript Err Object HelpFile Property

A fully qualified path to a Windows help file.

VBScript Err Object Number Property

A numeric value identifying an error.

VBScript Err Object Source Property

The name of the object or application that originally generated the error.

Remarks: VBScript Err Object

The properties of the Err object are set by the generator of an error-Visual Basic, an Automation object, or the VBScript programmer.

The default property of the Err object is Number. Err.Number contains an integer and can be used by an Automation object to return an SCODE.

When a run-time error occurs, the properties of the Err object are filled with information that uniquely identifies the error and information that can be used to handle it. To generate a run-time error in your code, use the VBScript Err Object Raise Method. The Err object's properties are reset to zero or zero-length strings ("") after an On Error Resume Next statement. The VBScript Err Object Clear Method can be used to explicitly reset Err.

The Err object is an intrinsic object with global scope-there is no need to create an instance of it in your code.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.