pro_vb thread: How do I create a collection class for a parent object and a collection class for a child object?
---Original Message-----
From: Andrew Traub [mailto:atraub@c...]
Sent: 05 June 2000 21:20
To: 'support@w...'
Subject: Visual Basic 6 Business objects 107X
I have a simple question about this book.
How do I create a collection class for a parent object and a collection
class for a child object?
Specifically, I want to have a collection of Invoices and a collection of
Invoice Items. So far, I have a load routine in the Invoices collection
which loads all the invoice information from a query and then iterates
through each one, creating a new Invoice object and then calling its load
method. In the Invoice object, I am not sure how to add the line items
and
make them a child of the Invoice - I have been back over Chapter 5 and 6
but
am not sure if the Video Object's details adapt strait through with the
Invoice object.
Thank you for any assistance,
<<...>> <http://www.compuflash.com/>
Andrew Traub