Error statement - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
ft:locale
en-US
Product name
MapBasic
ft:title
MapInfo MapBasic Reference
First publish date
1985
ft:lastEdition
2023-09-12
ft:lastPublication
2023-09-12T16:32:32.686000

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