Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Renaming a Class Library
Message
 
À
10/09/1998 16:27:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00135223
Message ID:
00140066
Vues:
27
>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.

Step one: Get out a piece of paper, and write at the top "Lessons Learned". Beneath that write "Renaming Class Libraries can be a real pain."

Step two: Follow Dave or Nancy's suggestions. You either have to open the forms as tables and manually update the CLASSLOC field, or, rename the real file as nancy suggested and open the forms one by one in the form designer and locate your library for each one. The former can actually be automated and therefore is the best option in my opinion.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform