Syntax |
Error errornumber |
Description |
Simulates the occurrence of the given runtime error. |
Comments |
The errornumber parameter is any Integer containing either a built-in error number or a user-defined error number. The Err function can be used within the error trap handler to determine the value of the error. |
Example |
This example forces error 10, with a subsequent transfer to the TestError label. TestError tests the error and, if not error 55, resets Err to 999 (user-defined error) and returns to the Main subroutine. Sub Main() TestError: |
See Also |
Err (statement); Error Handling (topic). |
E |