Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I create a new VCX of subclasses programatically
Message
From
06/10/1998 12:46:44
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00142974
Message ID:
00144261
Views:
31
>>>>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
>
>
>Try CREATE CLASS [class] OF [classlib] FROM [parentclass]
>
>This will create a new subclass and open the class designer for it.

Hi Ken!

I've tried this method and it does work. I would like to be able to do this without the Class Designer appearing, though. All I'm trying to do is create a set of empty sub-classes of my base classes so the end-user can modify the behavior of my classes with out having the source-code. Know of any tricks, etc., that I could try? I do have it functional with the CD coming up, and keyboarding the commands to exit, but it's kind of tacky. But it is only an in-house utility to create the empty class libs for distribution.

Thanks for any info!
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform