Microsoft® Visual Basic® Scripting Edition Add Method |
Language Reference Version 2 |
Adds a key and item pair to a Dictionary object.
object.Add key, itemThe Add method has the following parts:
Part Description object Required. Always the name of a Dictionary object. key Required. The key associated with the item being added. item Required. The item associated with the key being added.
An error occurs if the key already exists.