GefObjectEvents.Item (read-only property)

Gets the specified item from the collection.
Syntax: Set GefObjectEvent = object.Item ( Index )
Parameters:
Optional Index As long - The index number of the item to get.
Description: The Index argument can range from 0 to Count-1.

Example:

Sub GefObjectEvents_Item()
    
    Dim oCimObj As GefObject
    Dim oCimObjEvnts As GefObjectEvents
    Dim nEvntCount, EvntLoop As Integer
    
    Set oCimObj = CimGetObject
    Set oCimObjEvnts = oCimObj.Events
    
    nEvntCount = oCimObjEvnts.Count
    For EvntLoop = 0 To nEvntCount - 1
        MsgBox "The action's name for event #" & _
            (EvntLoop + 1) & " is " & _
            oCimObjEvnts.Item(EvntLoop).ActionName
    Next EvntLoop
    
End Sub