ERROR$ function

Purpose

Return a string containing the descriptive name of a specified PowerBASIC run-time error code.

Syntax

msg$ = ERROR$[(ErrNum)]

Remarks

ERROR$ returns the verbose text title of a PowerBASIC run-time error identified by ErrNum.

ErrNum must be in the range 1 to 255 inclusive.  Values outside of this range return "No error".  If ErrNum is not specified, ERROR$ returns the description of the current value of ERR.

See also

ERL, ERR, ERRCLEAR, ERROR, Error OverviewError TrappingON ERROR, Run-time Errors

Example

a$ = ERROR$(5)  ' Returns "Illegal function call"