Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to set property after using AddProperty in INIT?
Message
 
To
18/01/2008 12:08:27
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01283030
Message ID:
01283036
Views:
15
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform