ERROR$ function


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


msg$ = ERROR$[(ErrNum)]


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


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