>I know about opening double instances of the Class browser, including all sources which reference a desired class, then moving the desired class to another library...a means for preserving class references when a single class moves.
>
>I presume I could use some variant of above for copying the entire contents of a class library to an empty copy of itself in another directory.
>
>Is there an easier way?
That's it. However, you shouldn't have to copy each individual class - depending on how many you have in there, that shouldn't take too long anyway.
You're on the right track
- Create an empty class library with the same name in the new target directory
- Open your project in one instance of the class browser
- Open the new empty class library in another instance of the c.b.
- In the Project c.b. instance, select the treeview item for the class library you'll be moving (the icon is the set of books)
- Drag the drag icon (in the upper left corner of the c.b., not the one in the treeview) to the left-hand list in the empty library c.b. - just like moving a single class from one to the other.
- The c.b. will move the classes from the one library to the other. If there any errors, click OK to let it continue until it's done; repeat the previous step until there are no errors.
- Close both instances of the c.b.
- Double check that the old version of the library is empty by entering
Modify Class ?
in the command window and selecting the old library. If it's not, then move classes accordingly (or repeat steps 2 on again).
- Delete the old (now empty) vcx and vct
- Modify the project. If you haven't added the class library's new directory to the SET PATH setting, the P/M should say it can't find the class - if so, click Locate and select the new class library.
Insanity: Doing the same thing over and over and expecting different results.