Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot add objects to a class based on a control class.
Message
 
 
À
28/03/2005 15:08:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00999521
Message ID:
00999523
Vues:
22
Grigore,

If my memory serves me right, you can not add object to Control class. You should use container or custom class instead.

>Hi, everyone.
>
>I have a control base class (that's it: the base class is "control"). I can add objects to it. But if I subclass it, I cannot add objects in design time in the subclass. The error message is shown in the thread title.
>
>This means if I need several controls based on Control class, I have to subclass each of them from native base class and copy&paste the common methods/properties? If yes, then where's the OOP here?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform