# printerr statement

The printerr statement allows BASIC programs to produce output
 messages using the Error Message Processor and the errmsg file.

## Syntax

```
printerr errmsg.id [, param1 [, param2 [, ...]]]
```

## Parameter(s)

| errmsg.id | The ID of the item in the errmsg file to be output. |
| --- | --- |
| param | 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. |

## Description

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.

## See also

- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)

---
Source: https://d3codex.com/pickbasic-flashbasic/printerr-statement/ - part of the D3Codex reference.
