This function returns an event. The event is of type EventClass and can be used to retrieve and set properties of an event.
An EventClass has a number of properties that holds information about an event. You can access these properties to get and set this information. The function NewEvent can be used to create a new empty event. The properties of the event are listed below.
Parameter: index
Type: integer
Description: This is the index of the desired event.
Return value: EventClass
Type: object
See EventClass
Use caution when working with the event class properties directly. Internally, HomeSeer will compare, for example, an event name from the event class to the event name provided in a script command by making both lowercase or both upper case. When you access the event class directly, you are getting the event name exactly as it was entered by the user. If you are using Visual Basic, use Trim(), UCase(), or LCase() when comparing values of string properties.
The following script shows how to reiterate though all events, get the event name, and reiterate though all the devices the event controls.
