EnhEvents.Item

[This is preliminary documentation and subject to change.]

The Item property returns the specified event from the enhancement stream. This property is read-only.

Syntax

Set oEvent = object.Item( lIndex ) 
 

Parts

object
Object expression that resolves to an EnhEvents object.
lIndex
Long that indicates the 0-based index of the event to retrieve.

Examples

The following example retrieves the first event in the enhancement stream. Because events are ordered in the collection by start time, this event is the first event that occurs.

Set e = evs.Item(0)
 

This could also be written as:

Set e = evs(0)
 

Note that because events are stored as a 0-based list, the index of the first item is 0.

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.Count