DIAdem Help

Method: Add for Dictionary

  • Updated2024-09-12
  • 1 minute(s) read

Method: Add for Dictionary

Adds a new key/element pair to a Dictionary collection.

Object.Add(Key, Item)
ObjectDictionary
Object with this method
KeyVariant
Specifies the key.
ItemVariant
Specifies the element.

The following example generates a Dictionary collection and adds some key/element pairs:

Dim MyDic
Set MyDic = CreateObject("Scripting.Dictionary")
Call MyDic.Add ("a", "Austin")  
Call MyDic.Add ("b", "Berlin")
Call MyDic.Add ("c", "Chicago")

Log in to get a better experience