Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating/Writing to object methods at run-time?
Message
De
27/04/1999 17:21:22
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Creating/Writing to object methods at run-time?
Divers
Thread ID:
00212771
Message ID:
00212771
Vues:
52
Hi All,

I have created an enhanced textbox control that has
a InquiySQL property that can be used to let the user
popup a list of values by right-clicking the mouse.

This works fine, but in order to do so you need to also
have the associated PopList control (which is instantiated
at run-time) in your class.

I am thinking that in good OOP development, the textbox object
itself should take care of displaying the popup information
without requiring this external PopList class.

The PopList control is basically a container with a listbox
inside. I could instantiate these at run-time from inside my
listbox control, but then how do I make them react the way
I want? How do I change the methods of these newly instantiated
objects at run-time?

Can it be done or am I dreaming of a perfect OOP world?

Thanks in advance

Pascal
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform