Removes all the key/item pairs in the Dictionary object. Removes one specified key/item pair from the Dictionary object. Returns an array of all the keys in a Dictionary object. Returns an array of all the items in a Dictionary object. Returns a Boolean value that indicates whether a specified key exists in the Dictionary object. Set d = CreateObject("Scripting.Dictionary")ĭ.Add "a", "Athens" 'Add some keys and itemsĪdds a new key/item pair to a Dictionary object. The following code illustrates how to create a Dictionary object. The key is used to retrieve an individual item and is usually an integer or a string, but can be anything except an array. Each item is associated with a unique key. Items, which can be any form of data, are stored in the array. SyntaxĪ Dictionary object is the equivalent of a PERL associative array.
0 Comments
Leave a Reply. |