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

GET-NUMBER( ) method

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

Syntax

GET-NUMBER ( 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 error number returned for the nth error that occurred during the preceding ABL source code compilation.
For the ERROR-STATUS system handle, this is the error number returned for the nth error that occurred during the execution of a statement run with the NO-ERROR option.