Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Renaming a Class Library
Message
 
 
To
10/09/1998 16:27:15
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00135223
Message ID:
00135256
Views:
23
Bill,

You can open your forms as tables (make a backup first!) and alter the ClassLoc field with a program. If your code has any SET CLASSLIB commands you'll have to change those by hand.

>I created most of my forms with the Forms Wizard (so sue me, I was in a hurry to get a prototype out the door). Knowing that I would be making modifications to the underlying classes, I copied the WIZSTYLE library to my Classes directory. Rebuilding the project with Rebuild All got the classes to look at my "new" WIZSTYLE library. I have since modified the heck out of this library. I didn't rename the library files, figuring I would wait until I had finished tinkering with it before preparing my distribution files.
>
>Now I want to rename this customized WIZSTYLE library to something that makes a little more sense, MYLIB, for instance. If I rename the library, two major burps occur. First, my code screams bloody murder when it can't find the WIZSTYLE library where it's supposed to be. Second, it follows the trail back to the VFP50 directory and finds the original WIZSTYLE library. It uses this, undoing all of my changes and stranding countless code calls.
>
>Is there a way to rename "my" WIZSTYLE library (or any library, for that matter) to something else and still have the objects in my forms find the correct classes? I really don't want to have to open the forms or class libraries as a database if I can help it, but if that's the only (or the fastest) way, so be it.
>
>Bill Yater
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform