Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question about assign methods
Message
De
16/06/2004 20:08:33
 
 
À
16/06/2004 09:31:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00914118
Message ID:
00914497
Vues:
9
Hilmar,




>>How about having each member object initialized by themselves in INIT()?
>

>Do you mean, to assign the properties? The thing is, if code somewhere changes the property at the container level, I want this change to cascade to the contained objects.

I was thinking that maybe that the Assign methods for the container property should be the one to call the member/s affected to 're-load' or 're-initialize' the property values.

It's like each member must have a 'reloadproperties' method which will be run in its INIT(), then the Assign of each container property will call the 'reloadproperties' method of all affected members.

>
>And for the initial value, I decided to "re-use" the assign method. I suppose I could have a separate method, which is called by the assign method, but I don't know whether this would give me any advantage.
>
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform