Waits and processes events as long as the user-defined function is TRUE.

Syntax

PROCEDURE waitForMessages:
DEFINE INPUT PARAMETER UDFName AS CHARACTER NO-UNDO. 
DEFINE INPUT PARAMETER procH AS HANDLE NO-UNDO. 
DEFINE INPUT PARAMETER timeOut AS INTEGER NO-UNDO. 

Parameters

UDFName
User-defined function.
procH
Handle to user-defined function.
timeOut
Time limit (in seconds) in which no messages are received.

Applies to

Session objects

Notes

  • UDFName (in procH) returns TRUE and there is no period of more than timeOut seconds in which no messages are received.
  • The user-defined function, UDFName, is evaluated each time after a message is handled.

See also

createMessageConsumer procedure, deleteConsumer procedure, messageHandler procedure, waitForMessages procedure

For more information see the Message Consumer objects, the Consuming messages, the Terminating the Message Consumer object, and the Creating a message handler process.