setApplicationContext procedure

Passes context to the message handler.

Syntax

PROCEDURE setApplicationContext.
DEFINE INPUT PARAMETER handler AS HANDLE.

Applies to

Message Consumer objects

Notes

  • The handler parameter is typically a handle to a persistent procedure implemented by the application.
  • When the message handler is called, it gets that handler and uses it, for example, to deposit error information in the application's context by calling a specific handler's internal procedure.

See also

#rfi1387308688551, getApplicationContext function

For more information, see the Accessing message handler information and the Creating a message handler process.