The PRINTERR statement allows mvBASIC programs to produce output messages using the Error Message Processor and the ERRMSG file.
Format
PRINTERR 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
Before the introduction of the PRINTERR statement, the ERROR Message Processor was only available through the use of the STOP and ABORT statements, both of which terminated the program. The benefit of the PRINTERR statement is that it is not restricted to error conditions. One possible use of this statement is to generate help messages.
See Also