RAISEEVENT

Execute all registered event handlers

 

WNSupported in Synergy .NET on Windows

 

 

RAISEEVENT (event[, value_list])

Arguments

event

The name of the event to raise.

value_list

(optional) One or more parameter values that will be passed on to the registered event handlers.

Discussion

A class that raises an event is the event source, and the methods that process the event are called the event handlers. An event source can have more than one handler for the events it generates. When a class raises an event, that event is raised on every class that handles events for that instance of the object.

The event must be raised from within the class in which it is declared.

Synergy also provides an alternate way to raise an event, to make code conversion from other languages easier. The syntax is similar to C# syntax:

if (event != ^null)
event(argument values)

See also

Examples

See ADDHANDLER.