Student Mode Code Display

Welcome to the Fraternity!

Commenting has been enabled. You can comment on all the Code Items now.

Multi Dimension Object Dictionary in VbScript QTP


Add This Code to My Favourite List
Enter Email

Contributed By admin
Date 2015-01-19 06:23:59

Set objDict = CreateObject("Scripting.Dictionary")

objDict.Add "Math",CreateObject("Scripting.Dictionary")
objDict.Add "Science",CreateObject("Scripting.Dictionary")
objDict.Add "Social",CreateObject("Scripting.Dictionary")
objDict.Add "Hindi",CreateObject("Scripting.Dictionary")

objDict("Math").Add "Akash",20
objDict("Math").Add "Sumit",30
objDict("Math").Add "Amit",50

objDict("Science").Add "Akash",50
objDict("Science").Add "Sumit",60
objDict("Science").Add "Amit",90

msgbox objDict.Item("Math").Item("Sumit")
'Answer is 30

Download Above Code

Comments:



Add your comments...
Name : *      
Email : *      
The content of this field will be kept private and will not be shown publicly

Your Comment/Answer *

Enter the text present in this box : *