Application
Web
Session
Var
MonkeyTerm Object Model
Object: EventCollection
This class holds a collection of userdefined events. It it through this class that any changes to events should be made.
Property Item(Index As Variant) As clsEventReturns an Event object. Index can be a numeric index in the collection, a name of the event or event the object itself ;)
Function Count() As Variant Returns the number of defined events.
Sub Add(EventType As eEventType, EventName As String, Command As String, DataValues As Collection, [Enabled As Boolean = True]) Adds an event. EventType is defined below. EventName must be a unique name identifying the event. Enabled is default on, but can be called with the value False if the event is not to be enabled yet. DataValues is a collection used for some types of events. Timer-events needs two keys "Interval" and "FireOnce": Interval is the number of seconds between each fire. The value is a Single type. FireOnce is a boolean, indicating if the event should be fired more than once. EventType is an Enum with the following values: etUndefinied = 0 ' DO NOT USE! etTimer = 1 etWeb = 2 etOnSave = 3 etOnLoad = 4 etOnConnect = 5 etOnDisconnect = 6 etOnOpen = 7 etOnClose = 8
Sub Remove(Index As Variant) Removes the event with the name/index passed.
Adds an event object to the event collection.
|