ERROR Statement

The ERROR statement allows mvBASIC programs to produce output messages using the Error Message Processor and ERRMSG file.

Format

ERROR errmsg.id [, param1 [, param2 [ , ...]]]

Parameter(s)

errmsg.id

The ID of the item in the ERRMSG file to be output

param<1..n>

Optional parameter(s) used by the Error Message Processor. These parameters may be referenced by the A, R, and X commands from within the error message item.

Description

The ERROR statement and the PRINTERR statement are synonyms. Before the introduction of the ERROR statement and PRINTERR statement, the Error Message Processor was only available through the use of the STOP and ABORT statements, both of which terminated the program.

See Also

Statement and Function Reference