This function creates a new empty event. The trigger mode is set to MANUAL. All other properties are cleared and the name is set to the name given. The index of the new event is returned and may be used in the GetEvent call to set properties of the new event.
Parameter: name
Type: string
Description: This is the name of the new event.
Return value: event
index
Type: integer
Description: This is the index number
of the new event.