Creating a custom object and 'collector' and looping through the 'collector'

  • Thread starter Thread starter Samuel Hon
  • Start date Start date
S

Samuel Hon

Hi

I'm relatively new to .Net from a VB6 background and I've got a bit
stuck. I'd like to create my own custom object and loop though a
collection of them. This is roughly what I would like to do


For Each objBook in objBooks
Debug.print objBook.Name
Debug.print objBook.Author
Next objBook

I'm not having a problem creating the objBook object, but I have no
idea how to create objBooks so that I can add the objBook item to it
in a collection

Any help or pointers to websites would be appreciated

Thanks

Sam
 
Back
Top