Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PARENT is not an Object
Message
From
11/01/1999 12:42:15
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00174673
Message ID:
00174702
Views:
21
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform