Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I create a new VCX of subclasses programatically
Message
From
01/10/1998 17:06:17
 
 
To
01/10/1998 17:04:04
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00142974
Message ID:
00143036
Views:
31
>Hey Fred ---
>
>I give up. Use the ugly way :-)
>
>

Thanks for the effort!

I seem to think there is some way to create an object without executing it's INIT code, but I suffer from CRS.


>>>
>>>Ta da!!! This is the best way to do it.......
>>>
>>>
>>>LPARAMETERS cOldLib,cOldClass,cNewLib,cNewClass
>>>SET CLASSLIB TO &cOldLib
>>>oObject=CREATEOBJECT("&cOldClass.")
>>>oObject.SaveAsClass("&cNewLib","&cNewClass")
>>>SET CLASSLIB TO
>>>RETURN
>>>
>>
>>
>>Almost, but not quite! This forces the object to go thru it's INIT code. If you have any way to stop that, this would be the best way!
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform