ERRMES() Function - Get Error Message

Syntax

ERRMES(int{,str}{,ERR=lineref})

Description

For BBj-specific information, see the ERRMES() Function - BBj.

The ERRMES() function returns the error message associated with a given error code provided by the int parameter. The str parameter replaces the existing error message for the specified error number.

Parameter

Description

int

Error code.

str

String that replaces the existing error message for the int-specified error code for the current PRO/5 process only. The string may not exceed 254 characters.

ERR=lineref

Branch to be taken if an error occurs during execution.

Examples

PRINT ERRMES(12,"File Gone")
!Missing or Duplicate file
a$=ERRMES(12,"File Gone")
PRINT ERRMES(12)
File Gone
open (1)"./next"
!ERROR=12 (File Gone)

See Also

List of Errors

Functions - Alphabetical Listing