RaiseEvent

From Real Software Documentation

Jump to: navigation, search
Language Keyword

Calls the event that is passed to it.


Syntax

RaiseEvent EventName [(parameters)]

Part Type Description
EventName The name of the event that you want to trigger.
Parameters Parameters to EventName, if any.

Notes

EventName is the name of the event that you want to call. If the event requires parameters, then they are passed as the optional parameter to RaiseEvent. RaiseEvent is useful when you have an Event Definition that has the same name as a method and the ordinary way to call an event definition is ambiguous.

The only place you can use RaiseEvent is in the class definition where you added the Event Definition. In particular, you cannot raise an event from an instance of the class on the window, nor can you raise the event from outside the class. If you want to arbitrarily call an event, you will need to create a supporting method within the class as well that raises the event.

Personal tools