elements are residing on different levels, that is, their addresses are of different
lengths (depths). Sorry, I don't know how to express this in words correctly, but, please,
take a look at my code, and, I think, everything will be clear:
Code: Select all
collection := {}
collection.1 := {}
collection.1.0 := "hththt"
collection.1.1 := "dfg"
collection.1.2 := "fgh"
collection.1.3 := "rhtht"
collection.2 := {}
collection.2.0 := "ert"
collection.2.1 := {}
collection.2.1.0 := "erty"
collection.2.1.1 := "ujujuju"
collection.2.1.2 := "Sandy"
collection.6 := "Merry"
collection.7 := {}
collection.7.1 := {}
collection.7.1.9 := {}
collection.7.1.9.5 := {}
collection.7.1.9.5.4 := {}
collection.7.1.9.5.4.3 := {}
collection.7.1.9.5.4.3.2 := "Linda"
address := "6"
ShowIt(collection, address) ; want to show "Merry"
address := "2,1,2"
ShowIt(collection, address) ; want to show "Sandy"
address := "7,1,9,5,4,3,2"
ShowIt(collection, address) ; want to show "Linda"
ShowIt(ByRef Object, address)
{
msgbox % object[address]
}