Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combining Class Library

Status
Not open for further replies.

castor2003

Programmer
Jul 5, 2003
115
LC
I am working with 2 class libraries. I wish to combine them without subclassing them. I search the VFP HELP TO NO AVAIL. Is my desire achievable?
 
Hi

1. First step Backup for your safety.

2. Now drag and drop all the classes from Class2 to Class1.
All the components of class2 will get copied and added to class1. Then at the end, you can discard class2 and delete it.

Is this what you need ?

If you need more stuff, then look in these topics..

a. A way to redefine your class and make it a subclass of another class.

b. A Utility to reset the Base classes chosen as a derived class in your forms and insert the inroduced classes.

in the following link.

Remember... Backup first before venturing :)


ramani :)
(Subramanian.G)
 
I opened two instances of the Class Browser; one for each class. However, it did not allow me to drag and droP. What did I do wrong?
 
Castor,

Two points:

- When you drag from the class browser, be sure that you are dragging the little icon to the left of the "class type" combo, not the icon next to the class name.

- You don't need two instances of the class browser. Just open both classes in the same instance.

- You don't need the class browser at all. I think what Ramani had in mind was to drag and drop within the project manager. That's what I always do. It works.

Mike


Mike Lewis
Edinburgh, Scotland
 
Thanks alot...it worked

I also found out that I could do it through code:


ADD CLASS SourceClass OF SourceClassLib TO targetClassLib.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top