Skip to content

ERM

Error Message

This string function returns the text of the specified error code.

ERM (numeric-value [,ERR=line-ref|,ERC=error-code])
numeric-value
is any valid Thoroughbred Basic error code.
line-ref
is the program line number or label to branch to if an error is produced by this function.
error-code
is a programmer-defined error code. Valid values are positive or negative whole numbers.

If an invalid numeric-value is specified, an ERR=41 results.

ERM ( 20 )

returns “Statement Structure ( Syntax )”.

PRINT ERM ( 80 )

prints “Windows Error: Attempt to use same optional parameter twice” on the terminal.

Error Codes in Volume I

From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF