Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dictionary objects
#1
Solved: 10 Years, 9 Months ago
what is the use of dictionary objects and how can we use them, can any one explain with an example?
Thanks
Reply
#2
Solved: 10 Years, 9 Months ago
As an alternative to using environment variables to share values between
actions as described above, you can use the Dictionary object. The
Dictionary object enables you to assign values to variables that are accessible from all actions .

Set d = CreateObject("Scripting.Dictionary")
d.Add "a", "Athens" ' Add some keys and items.
d.Add "b", "Belgrade"
d.Add "c", "Cairo"

msgbox d("a")
Reply
#3
Solved: 10 Years, 9 Months ago
A Dictionary object is the equivalent of a PERL 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 a integer or a string, can be an object as well.

Methods that can be performed:
1.items
2.exists
3.keys
4.Remove
5.Remove all
6.Add

Properties:
1.Count
2.Item
3.Key
Reply
#4
Solved: 10 Years, 9 Months ago
Thank you,
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)