Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dictionary objects
02-07-2012, 02:48 PM (This post was last modified: 02-07-2012 02:51 PM by mrajeshtnl.)
Post: #1
dictionary objects

what is the use of dictionary objects and how can we use them, can any one explain with an example?
Thanks
Find all posts by this user
Quote this message in a reply
02-07-2012, 05:53 PM (This post was last modified: 02-07-2012 05:55 PM by rajpes.)
Post: #2
RE: dictionary objects
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")
Find all posts by this user
Quote this message in a reply
02-07-2012, 11:24 PM
Post: #3
RE: dictionary objects
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
Find all posts by this user
Quote this message in a reply
02-07-2012, 11:43 PM
Post: #4
RE: dictionary objects
(02-07-2012 11:24 PM)ravi.gajul Wrote:  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



Thank you,
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)