Collection Help...

  • Thread starter Thread starter Kim D
  • Start date Start date
K

Kim D

I am new to the compact framework but thought I knew vb collections.

I have classes I created and want to put in a collection with a key. i.e.

Dim c as new MyObj
mycol.add(c,c.Key)

This works ok in VB6 i could do the following

Dim c as new MyObj

c = myCol("MyKeyStr")

This would give c a reference to the object in the collection that matches.

However when I try to implement this in compactframework it blows up saying
"Index" is an invalid argument....

Help..

Thanks.

Kim
 
Back
Top