Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I create a new VCX of subclasses programatically
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00142974
Message ID:
00144257
Views:
43
>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

Thanks Christof, I'll give this a try!
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform