The printerr statement allows BASIC programs to produce output messages using the Error Message Processor and the errmsg file.
printerr errmsg.id [, param1 [, param2 [, ...]]]
errmsg.id | The ID of the item in the errmsg file to be output. |
param<1..n> | Optional parameter (or parameters) used by the Error Message Processor. These parameters can be referenced by the A, R, and X commands from within the error message item. |
The printerr statement is not restricted to error conditions. For example, one use of this statement is to generate help messages.
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.