Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PARENT is not an Object
Message
De
11/01/1999 12:42:15
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00174673
Message ID:
00174702
Vues:
22
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform