Recently I found that I’m not able to instantiate a structure for an array:
Dim mObjectLists() As New objectLayout
OK, fair, but it’s an easy way to store a bunch of data in an array instead of defining a class. And after that, I tried to define this:
Dim mObjectLists() As Collection
And add structures to the collection. But it says you should instantiate the reference object first. I searched about creating my own Collection based on the base collection class, but I think it’s wasting ones time to write code with class inheritance instead of the first sample.
What should I do to solve my problem like the first sample :).
You may use something like this: