I think I have worked it out. Looks like a clash between "old school
programming" and OO programming.

The original code contained section like:

colTeams.add(structTeams)
structTeams.Members.clear()

The last line was the culprit. I add an object to a collection and
then clear it, which clears it inside the collection.

The new section looks like:

colTeams.add(structTeams)
structTeams.Members = new Collection
structTeams.Members.clear()

After this change, all works fine.

Cheers

On Apr 11, 6:54 pm, Cerebrus <[email protected]> wrote:
> Interesting question and it looks logical, but I think we'll need to
> see some code to identify the problem.
>
> On Apr 11, 11:41 am, Aussiekraut <[email protected]> wrote:
>
> > While I've been coding in VB in the past, I am pretty new to VB.Net
> > and have a lot of catching up to do. I'm working on a project that
> > requires a two dimensional array and instead of using traditional
> > arrays, I thought collections may be the way to go instead.
>
> > snipped for brevity

Reply via email to