property PropertiesList.Item (Index as Variant) as Property
Returns a Property object based on its index.

 TypeDescription 
   Index as Variant A long expression that indicates the index of the Property being requested  
   Property A Property object being accessed.   
Use the Item property to access a property by its index. Use the Property property to access a Property giving its identifier. Use the Count property to get the number of items in the control. Use the Item and Count properties to enumerate the properties/items in the control.

The following sample enumerates the properties in the control:

With PropertiesList1
    Dim i As Long
    For i = 0 To .Count - 1
        Debug.Print .Item(i).Name
    Next
End With

The following sample enumerates the properties in the control using the for each statement:

Dim p As EXPROPERTIESLISTLibCtl.Property
For Each p In PropertiesList1
    Debug.Print p.Name
Next

 


Send comments on this topic.
1999-2015 Exontrol.COM, Software. All rights reserved.