QBasic 1.1: ERROR Statement

Syntax

ERROR expression%

Description / Parameter(s)

expression% The error code of a Basic or user-defined error; a value in the range 1 through 255. To define your own error, use a value that isn't listed in the Basic Run-Time Error Codes table.

Example

' For an example, see "ON ERROR" Statement