EnhEvent.IsTrigger

[This is preliminary documentation and subject to change.]

The IsTrigger property indicates whether the event is a trigger.

Syntax

object.IsTrigger [ = lTrig ]
 

Parts

object
Object expression that resolves to an EnhEvent object.
lTrig
Long that indicates whether the event is a trigger. If the value is non-zero, the event is a trigger. If the value is zero, it is not.

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

EnhEvent.IsAnnounce, EnhEvent.Trigger

Examples

The following example searches through the enhancement stream until it finds a trigger event. When it finds a trigger, it stores the trigger's handle in an array.

Dim num As Integer
Dim TrigArray() As Long
ReDim TrigArray(0 To evs.Count - 1)
 
For Each e in evs
    If (e.IsTrigger) Then
        TrigArray(num) = e.Handle
        num = num + 1
    End If
Next e
 

The reason that the handle is stored instead of the trigger's index value, is that the handle uniquely identifies the trigger and does not change. Because the collection is sorted by start time, the trigger's index value can change as events are added or deleted.