Example of a MESSAGESEARCHER Statement

In the following example, the value of RTN, the returned integer, notes whether or not the message was successfully found and formatted. ERRORS is the output message array identifier. The language specification is ENGLISH. POSINTX is the arithmetic expression. MSG is the result pointer and MSG_LEN is the result length.

RTN:= MESSAGESEARCHER (ERRORS ["ENGLISH", POSINTX], MSG, MSG_LEN);