Error Handling Quick Reference
The following table lists methods for error handling.
Statement | Purpose | Reference |
---|---|---|
Erl |
Returns a number that identifies the code line where an error occurred. |
|
Err |
Returns the error code of the last Visual Basic error handled. |
|
Err = errornumber |
Sets a run-time error code. |
|
Error |
Returns the error message that corresponds to an error code. |
|
Error errornumber |
Simulates the occurrence of an error. |
|
On Error |
Identifies the location of code that handles an error. |
|
Resume |
Stops the code that handles an error. |