Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dictionary object holding multiple dictionaries?

Status
Not open for further replies.

lemkepf

Technical User
Oct 8, 2002
86
0
0
US
Hello all! I'm wondering if this is possible? Basically i need to create a 3 dimensinal array, but i have to be able to refernce the variables by name, not number.
I think i have been able to declare a dictionary object inside of another, i'm wondering how i would get the values back? kinda like this:
Code:
dim maindic
Set maindic =Server.CreateObject("Scripting.Dictionary")
dim subdic
set subdic= Server.CreateObject("Scripting.Dictionary")
subdic.Add "Price", "$40"
maindic.Add "sub", subdic
Response.Write("The value of key main - sub is: " & maindic.Item("sub".item))
That code doesn't work, stuck on the response.write line. Any idea how i can do this? Thanks for all the help!
Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top