Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : GET-MESSAGE( ) method (Handle)
 

GET-MESSAGE( ) method (Handle)

Returns the message associated with a specified error currently recorded by the specified system handle.
Return type: CHARACTER
Applies to: COMPILER system handle, ERROR-STATUS system handle

Syntax

GET-MESSAGE ( n )
n
An integer expression, from 1 to the value of the NUM-MESSAGES attribute, that specifies the numeric occurrence of the error whose information you want to retrieve.
For the COMPILER system handle, this is the message returned for the nth error that occurred during the preceding ABL source code compilation.
For the ERROR-STATUS system handle, this is the message returned for the nth error that occurred during the execution of a statement run with the NO-ERROR option.