Purpose
Simulates the occurrence of an error condition. You can issue this statement from the MapBasic window in MapInfo Pro.
Syntax
Error error_num
error_num is an integer error number.
Description
The Error statement simulates the occurrence of an error.
If an error-handling routine has been enabled through an OnError statement, the simulated error will cause MapBasic to perform the appropriate error-handling routine. If no error handling routine has been enabled, the error simulated by the Error statement will cause the MapBasic application to halt after displaying an appropriate error message.
See Also:
Err() function, Error$() function, OnError statement