What is Dictionary Objects?
A Dictionary object is the equivalent to associative array. Items can be any form of data, and are stored in the array. Each item is associated with a unique key. The key is used to retrieve an individual item and is usually an integer or a string, but can be anything except an array.
sample snippet:-
A Dictionary object is the equivalent to associative array. Items can be any form of data, and are stored in the array. Each item is associated with a unique key. The key is used to retrieve an individual item and is usually an integer or a string, but can be anything except an array.
sample snippet:-
Dim dict ' Create a variable.
Set dict = CreateObject("Scripting.Dictionary")
dict.Add "country", "India" ' Add some keys and items.
dict.Add "Tool", "QTP"
dict.Add "Product", "HP"
It has fallowing Methods:-
1.Add
2.Items
3.Keys
4.Remove
5.RemoveAll
6.Exists
It has fallowing properties:-
1.Item
2.Add
No comments:
Post a Comment