Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I create a new VCX of subclasses programatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00142974
Message ID:
00143729
Vues:
45
Hi Fred,

>That almost works. The problem is that the INIT event fires for the class. It seems to me I remember there being some way to create an object WITHOUT firing the INIT event. You wouldn't happen to know how to do that, would you?
DEFINE CLASS myClass as Custom
   ADD OBJECT Name AS OtherClass NOINIT
ENDDEFINE
The NOINIT option does only work for added objects, not for the class itself. You could try whether you can call the SaveAsClass method of the contained object to create a new class of that type. I suppose you are doing it all in the development environment, so creating the code above on the fly should not be a problem.

Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform