Information générale
Catégorie:
Programmation Orientée Object
Thanks for the reply, Jim..
Actually, Sergey suggested exactly what I was looking for: Use the AddProperty method to add the Properties at runtime, which was I did.
Regards
>>Is it possible to add a property to a pageframe, or for that matter, any object, just as you can for the form?
>>
>>TIA
>
>You can add new properties to any class definition. The restriction in the VFP designers is that you can add properties and emthods only to the outer most container in the designer. That means, in the form designer you can add properties to the form only. If you are creating a formset, you can only add properties and methods to the formset. However, in the class designer if you are designing a pageframe class then you can add properties to the pageframe class (but not the pages in it).
>
>So to add properties to a pageframe you need to create a class for the pageframe, add the properties you want and htne put that pageframe class in your form.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement