Add
This method adds a new item with the specified name to the collection.
The collection triggers the OnChange event.
The method returns the index of the inserted item within the collection. Use this index to access the item within the collection.
Syntax
Add (NewItem As Object, ItemName As String)
Parameter | Description |
---|---|
NewItem |
IDispatch interface pointer to an object to be added to the collection. |
ItemName |
Name of the item within the collection. Use this name to access the item within the collection. |