Customization > Automation Interface > Functions > For Modeler Items > Functions for Collections > ItemCount function (automation interface)
ItemCount function (automation interface)
Syntax:
ItemCount("<association>")
Where:
<association> is a string that specifies the association type to use to find objects. Identifying associations...
ItemCount returns the number of objects available through the specified association as an unsigned 32 bit integer.
Examples
In this example, strCount is set to the number of Operations that Class1 owns.
Set objItem = Dictionary.Item("Class", "Class1")
strCount = objItem.ItemCount("Operation")
Was this helpful?