Thanks very much for the helpful response
btw, can I automatically include you text as quotes :-)
you said:
If you use CreateObject() you are not causing a containership relation between two objects. It's hard to say exactly what type of relationship your two objects have now without seeing the relevant code.
(me)
The relationship is that 2 is part of 1. I am setting up a series of objects to create HTML Tables (mostly as an OO Programming exercise). So my Table is an object, each row is an object & each Cell is an object.
As rows are created a counter is incremented at the Table level.
(You)
Another thing to consider is the oTwo probably shouldn't be changing a property of oOne directly. oTwo should call a method of oOne requesting it to increment it's counter.
(me)
Good advice. Like I say, I am quite new to this stuff & trying to get a grip on the how & why of it all.
Is the use of AddObject() common in these situations?