Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the easiest way to duplicate a class in a VCX
Message
From
11/12/2008 16:50:42
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01366733
Message ID:
01366765
Views:
7
>>I have a class library with a combobox that I've customized by adding additional properties and methods. Now I want to use it as a starting point for another combobox class. Can I duplicate it without having to manually rebuild the entire thing as a new class? I thought that the Class Browser might do it but I don't see anything there.
>Mike,
>
>The whole idea of classes it that you can use the existing cxlass as a starting point for a new subclass by simply creating a new class that is a subclass of your existing class. You don't copy and paste code to the new class, you make the new class a subclass of the existing one and it magically gets all of the code and properties of the existing class.

I understand what you are saying and perhaps I have a bad class design, but, I really do want to copy the class as a starting point. I'm going to remove a lot of the existing properties and methods and add to it. Rather than trying to retype all that stuff, I figured it would be easier to copy it, delete the unnecessary parts, then go from there.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform