Extending product function with VBA > System Architect collections > OfCollection class > Remove
  
Remove
Removes a diagram or definition object from the collection.
Syntax
OfCollection Object.Remove(Index)
Parameters
OfCollection Object
Use: Required
Data type: Object
Any instantiated OfCollection class
Index
Use: Required
Data type: Long
The number of the diagram or definition item in the collection object count to remove.
Example
Dim i As Integer, oDef As Definition, coll As OfCollection
Set coll = oDef.GetPropertyAsCollection("Location Types")
coll.Remove(2) coll.SetProperty
oDef.Save
See also
OfCollection class