Section A.8. Error Handling

Table of contents:

A 8 Error Handling

Clear Method

Resets the current Err object

Description Property

Returns or sets the Err object's description of the current error

Err Object

Contains information about the last error

HelpContext Property

Returns or sets the help file ID for the Err object's current error

HelpFile Property

Returns or sets the name and path of the help file relating to the Err object's current error

Number Property

Returns or sets the current error code for an Err object

On Error Resume Next Statement

Indicates that errors will be handled within script and that program execution should continue on the line of code following an error

Raise Method

Generates a user-defined error

Source Property

Returns or sets the name of the object or application which raised an Err object's error

Part I: The Basics

Introduction

Program Structure

Data Types and Variables

Error Handling and Debugging

VBScript with Active Server Pages

Programming Outlook Forms

Windows Script Host 5.6

VBScript with Internet Explorer

Windows Script Components

Part II: Reference

Part III: Appendixes

Appendix A. Language Elements by Category

Appendix B. VBScript Constants

Appendix C. Operators

Appendix E. The Script Encoder



Vbscript in a Nutshell
VBScript in a Nutshell, 2nd Edition
ISBN: 0596004885
EAN: 2147483647
Year: 2003
Pages: 335

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net