Simulates the occurrence of an error.
Error errornumber |
The required errornumber can be any valid error number.
The Error statement is used to generate run-time errors.
This example uses the Error statement to simulate error number 11.
On Error Resume Next ' Defer error handling. Error 11 ' Simulate the "Division by zero" error. |
See Also |
Erl Function , Err Function , Error$ Function , On Error Statement , Resume Statement , Trappable Errors |