Click to See Complete Forum and Search --> : how do i use collection in vb?


coolily
January 20th, 2000, 10:14 AM
i used the the class builder to create a class and then to add the class to a collection..
do i need to further initialise the collection with the class using code?
how can i enter data to the class of this collection?.
how can i add to the collection?

Lothar Haensler
January 20th, 2000, 10:23 AM
if you have created a collection class using the class builder utility it will have created all the code for initialising.
To add objects to the collection just call the Add method of the collection class. It will return a reference to the newly created object.