Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I copy a class library?
Message
From
16/12/2000 02:36:16
 
 
To
15/12/2000 19:18:59
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00454298
Message ID:
00454350
Views:
34
>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
  1. Create an empty class library with the same name in the new target directory
  2. Open your project in one instance of the class browser
  3. Open the new empty class library in another instance of the c.b.
  4. 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)
  5. 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.
  6. 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.
  7. Close both instances of the c.b.
  8. 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).
  9. Delete the old (now empty) vcx and vct
  10. 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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform