GetEventHandlerIndex Method

Returns the index of the Event member in the Procedures collection.

Syntax

object.GetEventHandlerIndex bstrEventName, pIndex, pFound

Properties

The GetEventHandlerIndexmethod syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

bstrEventName

String. The name of the event.

pIndex

Long. Numerical index of the procedures position in the existing collection. Note: This index is transient, it will change as procedures are added or deleted.

pFound

Long. Returns 1 if an event procedure is present, 0 if no event procedure is present.

 

Example

Applies To