The Messages property provides access to the collection of messages on the client message queue. The messages will stay on the queue until they are cleared.
For Each(#Message) In(#sys_msgq.Messages)
#xDemoCaption := #Message.Text
Add_Entry To_List(#List)
Endfor