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

GET-MESSAGE-TYPE( ) method

Returns the message type associated with the nth message that occurred during the preceding compilation.
Return type: INTEGER
Applies to: COMPILER system handle

Syntax

GET-MESSAGE-TYPE ( n )
n
An integer expression, from 1 to the value of the NUM-MESSAGES attribute, that specifies the numeric occurrence of a compilation message. If the nth occurrence of a compilation message did not occur, the compiler issues a warning message at runtime.
The GET-MESSAGE-TYPE method returns one of the following values:
*1 — Error message
*2 — Warning message
*3 — Preprocessor directive