EnhEvents.FindTime

[This is preliminary documentation and subject to change.]

The FindTime property returns a reference to the event that starts at the specified time. This property is read-only.

Syntax

Set oEvent = object.FindTime( dTime ) 
 

Parts

object
Object expression that resolves to an EnhEvents object.
dTime
Double that specifies the start time. This value will be compared to each events EnhEvent.Start property until a match is found. If a match is not found, FindTime returns an error.
oEvent
EnhEvent object that receives the reference to the event with the start time specified by dTime.

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.

Examples

The following example looks up an event in the EnhEvents collection by start time.

'Declare variables
Dim Ev As IEnhEvents
Dim e As IEnhEvent
Dim lHandle As Long
 
'create the collection
Set Ev = New EnhEvents
 
'add events to the collection
Ev.Add 15, "EventA"
Ev.Add 45, "EventB" 
Ev.Add 25, "EventC"
 
'find EventB in the collection by specifying 
'its start time.
Set e = Ev.FindTime(45)