Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
WebSpeed API Reference : get-messages
 

get-messages

This function returns any messages queued for the specified message group or any message group if the specified group is Unknown value (?). Messages are returned delimited by a linefeed character (~n).

Location

web\method\message.i

Parameters

INPUT p_grp AS CHARACTER
A known message group into which messages may have been queued with the queue-message function. The Unknown value (?) indicates all message groups.
INPUT p_delete AS LOGICAL
Indicates if the message queue should be emptied. If TRUE is specified, the messages are removed from the queue. If FALSE is specified, the messages remain queued.

Returns

CHARACTER

Notes

All queued messages are output after the Web object specified in a URL returns. As such, messages do not remain queued between requests.

Examples

See the output-messages procedure in web\method\message.i.

See also

available-messages
get-message-groups
output-messages
queue-message