I have a parent with children. The parent has a name and a list of children. each child has a name and an age. I wanted to make something liek
Code:
type child
name as string
age as long
end type
but everyone and their mother says to use classes instead because of binding issues
so in a class module named "child" i made:
Code:
public name as string
pubic age as long
and then I made:
Code:
dim parent as collection
set parent = new collection
parent.add "larry", "name"
dim childlist(0 to 2) as child
set childlist(0) = new child
set childlist(1) = new child
parent.add childlist, "list"
parent!list(0).name = "harry"
Which fails utterly.
Note: there may be syntax issues, but childlist(0).name works fine
Is there some other syntax for a collection->array->class->public member?