Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying a Class
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00502814
Message ID:
00511068
Views:
16
Hi Dodi,

1. Open two instances of the class browser.
2. In one instance, open the target library.
3. In the other instance, open the source library.
4. In the source library, select the class you wish to copy FROM.
5. HOLD DOWN THE 'CTRL' KEY, and drag from the icon *TO THE LEFT OF THE COMBO BOX ON THE TOP* (the tool tip on that control says "Class Type").
6. Drop the dragged class into the target library.

You have now copied the class to another library with no effect on the original. The class still references the same hierarchy, however; you will probably need to Redefine where the class inherits from to get your desired behavior.

HTH.

>>Hi Ed
>>
>>>I have a form class stored in a vcx that I would like to make a copy of and then modify. What is the best way to do this. The class browser doesn't seem to have a copy function.
>>
>>You can copy a class in a class library by dragging your class from one class library to another.
>>
>>It will copy the class and not move it.
>>
>>Michael Henstock
>>AWS
>
>Yet it doesn't copy to allow modification without affecting the original class... how can we copy the class itself?
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform