Collection.Add Method | Microsoft.VisualBasic.Collection |
objectvariable.Add item [, key, before, after] |
|
objectvariable required; Collection Object
The Collection object to which an item is to be added
item required; Object
An object of any type that specifies the member to add to the collection
key optional; String
A unique string expression that specifies a key string that can be used, instead of a positional index, to access a member of the collection
before optional; Object
Index or key of the item after which the new item is to be added
after optional; Object
Index or key of the item before which the new item is to be added
Adds an item to a particular position in a collection, or to the end of the collection if no positioned specified.
Collection.Count Property | Microsoft.VisualBasic.Collection |
objectvariable.Count |
|
objectvariable required; Collection Object
An object variable of type Collection
Returns an Integer containing the number of members in the collection.
Collection.Item Method | Microsoft.VisualBasic.Collection |
objectvariable.Item(index) |
|
objectvariable required; Collection Object
An object variable of type Collection
index required; Integer or String
The index (the ordinal position) or the unique key name of the object in the collection
Returns the member of the collection for the specified key or ordinal position.
Collection.Remove Method | Microsoft.VisualBasic.Collection |
objectvariable.Remove(index) |
|
objectvariable required; Collection Object
An object variable of the Collection type
index required; Integer or String
The ordinal position or the unique key name of the item to remove
Removes a member from a collection.