CanuckAmok
New member
- Local time
- Yesterday, 19:15
- Joined
- Jul 22, 2009
- Messages
- 2
Howdy,
I have a class module that contains a collection of objects. These objects each also contain a collection of objects. I'm having trouble referencing anything in this sub-collection.
The main object represents a physician's clinic, which contains a collection of appointment slots (time, room, etc.). Each slot contains a collection of appointments (i.e., patients). How do I reference a particular patient? I've tried, for example:
objClinic.slots(i).appointments(j).patientID
...but that returns an error. Is it possible to have a collection within a collection like that, and if so, how is it referenced?
Thanks for any help!
J.
I have a class module that contains a collection of objects. These objects each also contain a collection of objects. I'm having trouble referencing anything in this sub-collection.
The main object represents a physician's clinic, which contains a collection of appointment slots (time, room, etc.). Each slot contains a collection of appointments (i.e., patients). How do I reference a particular patient? I've tried, for example:
objClinic.slots(i).appointments(j).patientID
...but that returns an error. Is it possible to have a collection within a collection like that, and if so, how is it referenced?
Thanks for any help!
J.