Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding property to a control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01319573
Message ID:
01319575
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform