Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
(OOP) Part Time Composite Objects?
Message
 
À
25/08/2003 11:37:01
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00822766
Message ID:
00823526
Vues:
30
>>Hi Chris,
>>
>>I've done this before.
>>
>>How about adding a couple of properties to the parent bizobj and make them point to child objects on an as-needed basis.
>>
>>if this.ChildObject1 is not type object and we need it to be an object
>> create child object and have the parent-object property point to it
>>endif
>>
>>Is this what you have in mind?
>
>I think my biggest problem is I don't know what I have in mind. This sounds like the easiest answer, but it's more code to write. (Isn't everything?)
>

Hi Chris,

It's more code to write but it's not necessarily a lot of it. At most, 3 extra lines, to determine whether the object you're expecting to find is indeed instantiated, and if it isn't, instantiate it.

Alex
Low-carb diet not working? Try the Low-food diet instead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform