SET HANDLER - static_event
SET HANDLER handler1 handler2 ... [ACTIVATION act].
An event handler is executed if the associated static event is triggered using
RAISE EVENT. The list
handler1 handler2 ... has the same form as for
instance events, but can only contain event
handlers for static events declared using
The event that can be handled by an event handler for static events is already defined uniquely by its
definition using the statement
METHODS. The addition
FOR (required when registering
or deregistering instance event handlers to determine the triggering instances) cannot be specified.
The registration or deregistration of an event handler for static events is independent of the instance and is applies globally to the current
... ACTIVATION act
The same applies to the syntax and semantics of the addition
to the statement
SETHANDLER for instance events.
As long as the registration of an instance method as an event handler for a static event is not canceled using
ACTIVATION " ", the associated object cannot be deleted by the
garbage collector, since it is still used by the runtime environment.