You can copy classes between class libraries. You can copy classes using Class Browser, the Project Manager when the class libraries are parts of projects though not necessarily the same project, or programmatically.
To copy a class between class libraries
Open the class library containing the class you want to copy in the Class Browser.
For more information about opening class libraries, see How to: Open Class Libraries.
Open the destination class library in another instance of the Class Browser.
In the Class Browser containing the source class library, select the class you want to copy.
Press and hold the CTRL key while you drag the class icon above the class list to the destination class library.
A plus (+) sign appears above the cursor when you drag the class icon into the destination class library.
|To move a class from one class library to another, do not press and hold the CTRL key while dragging the class icon.|
To copy a class between class libraries in projects
Open the project or projects containing the class libraries.
In the Project Manager, select the Classes tab.
Expand the class library containing the class you want to copy and the destination class library.
Drag the class to the destination library.
The mouse pointer changes into a class library icon when you move it over a valid destination library.
To copy classes between class libraries programmatically
Use the ADD CLASS command with the OF clause.
For example, the following line of code copies the class MyClass from MyClassLibrary1 to MyClassLibrary2.
ADD CLASS MyClass OF MyClassLibrary1 TO MyClassLibrary2
For more information, see ADD CLASS Command.