Error Handling Statements & Functions

 

 

Function

What it Does to the Argument

Comments

CVErr(errornumber)

Returns a Variant containing an error number

 

Error errornumber

Forces an error to occur. 

errornumber indicates the type of error that should occur.

Error(errornumber)

Returns a string value containing the error message that corresponds to errornumber

 

On Error GoTo line 

 

When an error results, the statement at the label or line number specified by line is jumped to immediately

 

On Error Resume Next

When an error results the program continues on to the next line of code rather than jumping elsewhere

 

On Error GoTo 0

Disables all error handling

 

Go Back to Top

arrowl2Return to the Visual Basic 6 Commands & Functions Page

Comments

 

Latest Version! NetObjects Fusion 10 

 

Copyright 1998 Rich Hamper 

All Rights Reserved

 

Last Updated:

Sunday, January 20, 2008