Visual LANSA provides access to a globally scoped Message Queue object (SYS_MSGQ) access to all messages generated during the execution of the application. Messages may be issued by client or server processing using a variety of means including as repository validation rules and using the MESSAGE command.
Messages generated on the server are automatically routed to the client so they are available to be shown on the User Interface.
The three most useful methods or properties on SYS_MSGQ are:
SYS_MSGQ.Messages - 13.1 Get All Messages
SYS_MSGQ_ClearAll - 13.2 Clear the Message Queue
SYS_MSGQ.Add - 13.3 Add a Message to the Message Queue