Type | Description | |||
Index as Variant | A Long expression that specifies the index of the Component to be requested, or a String expression that specifies the name of the Component to be requested. | |||
Component | A Component object being requested. |
The following code enumerates the components of the root component:
Dim c As Variant For Each c In ICalendar1.Root.Components Debug.Print c.Name Next
and it's equivalent with the following snippet:
Dim i As Long With ICalendar1.Root.Components For i = 0 To .Count - 1 Debug.Print .Item(i).Name Next End With