[This is preliminary documentation and subject to change]
Adds a key and item pair to a Dictionary object.
object.Add (key, item)
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.
The following example illustrates the use of the Add method.
var d;
d = new ActiveXObject("Scripting.Dictionary");
d.Add("a", "Athens");
d.Add("b", "Belgrade");
d.Add("c", "Cairo");
Add Method (Folders) | Exists Method | Items Method | Keys Method | Remove Method | RemoveAll MethodApplies To: Dictionary Object