Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
How To Use the Script Control Error Object
Article ID: 184742 - View products that this article applies to.
This article was previously published under Q184742
This article describes the Script control Error object properties and provides sample code that illustrates its use.
The script control Error object provides rich information to the host application regarding script errors. The following properties are supported:
Property Description ----------------------------------------------------------------- Number Error number. Description Error message. Line The line number the error occurred on (1 based). Column The column number the error occurred on (0 based). Text* The text of the line that caused the error. Source** What component caused the error. HelpFile*** Help file name provided by the error source. HelpContext*** Help context provided by the error source.
* The Text property is blank for run-time errors, but contains data for compilation errors.
** The Source property for VBScript is either Microsoft VBScript compilation error or Microsoft VBScript run-time error. If a different scripting language is used, the Source may be different.
*** The HelpFile and HelpContext properties are blank except for user raised errors.
IMPORTANT: Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures.
Script control Help topic: Error object
For information about obtaining the Script control, please see the following article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/184739/EN-US/ ): INFO: Where to Obtain the Script Control
(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Malcolm Stewart, Microsoft Corporation
Article ID: 184742 - Last Review: July 13, 2004 - Revision: 3.1