Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I create a new VCX of subclasses programatically
Message
De
04/10/1998 15:10:37
 
 
À
03/10/1998 10:38:24
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00142974
Message ID:
00143724
Vues:
41
>>>Fred ----
>>>
>>>Try this (two step process):
>>>
>>>ADD CLASS oldclassname OF oldclasslib TO newclasslib
>>>RENAME CLASS oldclassname OF newclasslib TO newclassname
>>
>>No, that's a COPY of the class. I need a subclass? Thanks for trying!
>
>Off the top of my head:
>
>x=createobject("yourclass")
>x.saveasclass("classname","classlib")
>release x

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?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform