EnhEvents.AddEvent

[This is preliminary documentation and subject to change.]

The AddEvent method adds the specified event object to the enhancement stream.

Syntax

object.AddEvent( oEvent )
 

Parts

object
Object expression that resolves to an EnhEvents object.
oEvent
EnhEvent object to add to the enhancement stream.

Remarks

To use AddEvent, your application creates an EnhEvent object and adds it to the enhancement stream. The two methods, EnhEvents.Add and EnhEvents.AddText automatically create an EnhEvent object and add it to the stream.

You cannot add an event object to more than one stream simultaneously. Attempting to add an event that is part of a stream to another stream causes AddEvent to return an error.

QuickInfo

  Windows NT: Unsupported.
  Windows: Requires Windows 98.
  Windows CE: Unsupported.
  Header: Declared in stream.idl.
  Import Library: Included as a resource in stream.dll.
  Unicode: Yes.

See Also

EnhEvents.Add, EnhEvents.AddText, Adding Events to an Enhancement Stream

Examples

The following example uses the AddEvent method to add an event to the enhancement stream.

'Create the event object e
Dim e As IEnhEvent
Set e = New EnhEvent
 
'Initialize the properties of event e.
e.Text = "00:03:20.0 MyFile.htm only;"
 
'Add the event to the stream.
evs.AddEvent e
 
'Change the starting time of the event. Note that because
'the event e and the event in the stream are the same object
'both the stream and e object variable will reflect the change.
e.Start = 350