Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding property to a control
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01319573
Message ID:
01319575
Views:
14
>Hi,
>
>I've seen many times, and in many books, the idea of adding property or method to a control. I tried to do it, but I can't figure out how to do that. Adding property to the class you are editing is simple, but there must be a way to add a property to a control outside a class.
>
>Thank you very much

You can add a property programmatically using AddProperty method.

In other words,
this.myObject.AddProperty("myNewProperty","My Test Value")
This would work for most classes except for the empty class. There you need to use AddProperty() function.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform