Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to set property after using AddProperty in INIT?
Message
 
À
18/01/2008 12:08:27
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01283030
Message ID:
01283036
Vues:
16
>I've got an AddProperty() in a button class INIT method. Where do I set it's value in the subclasses to make sure it is populated at runtime? Want to make sure the horse is in front of the cart. Thanks!

Your could use the same AddProperty to set its value:
this.AddProperty([NewOne], some value)
That way you would have default value for it.
But if you want to change it in some subclass you should do this programatically it Init event of the subclass:
*** Init:
DODEFAULT() && That is mandatory. If you don't use that your property will not be created.
this.NewOne = other value
Why not add it with Class menu and make that property persistent for all?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform