getMessage()

Return the current message.

Syntax

getMessage()
  RETURNS ggc.Message

In the return the ggc.isErrorMessage field of the Message record should be FALSE.

Usage

You can use it to return the message from the current (MESSAGE) instruction to the user allowing you to test this interaction in a scenario.

For more information on MESSAGE statements, see the MESSAGE topic in Genero Business Development Language User Guide for details.

You must declare a variable of type ggc.message for the return. For example:

DEFINE msg ggc.Message

CALL ggc.getMessage() RETURNING msg.*
DISPLAY msg.message
CAUTION: Avoid writing code like this:
LET msg = ggc.getMessage()
DISPLAY ggc.getMessage().message