Each member of the collection has a specific index number within the collection derived when the collection is created. The item variable is an object based upon the index of the collection. Its index number or name, if known, can reference this object.
Parameters
Data type: Boolean
Read-only
Example 1
Dim coll As SAObjects, i As Integer Set coll = sa.Encyclopedia.GetAllDiagrams coll.ReadAll For i = 1 To coll.Count Debug.Print coll.Item(i).Name Next i
Enumeration is also supported with the For Each object In CollectionObject ... Next keyword structure.
Example 2
Dim sao As SAObjects Dim def as Definition Dim bOldRO as Boolean
' Remember old setting bOldRO = sa2001.Encyclopedia.OpenObjectsAsReadOnly
' obtain def by id for instance sa2001.Encyclopedia.OpenObjectsAsReadOnly = True ' set desired mode of access Set sao = sa2001.GetFiltereredDefinitions("", DFXUSER6) objsao.ReadAll sa2001.Encyclopedia.OpenObjectsAsReadOnly = bOldRO ' restore old setting