Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rename a class library
Message
 
 
À
23/11/2011 20:32:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01529734
Message ID:
01529735
Vues:
40
>I have a class library with a fairly common name ('basecontrols.vcx') that I need to rename to something less likely to clash with existing names. I would like to rename it to 'peme_basecontrols.vcx')
>
>Are there any tools that will cycle thru all my forms/classes and modify my VCXs and SCXs, or do I have to hack those files myself.
>
>AND -- there is always that thing about changing memberclasses. That vcx has a page which is used as the memberclass for the pageframe class, and that pageframe class is used extensively in the project. Does anybody know if it is even possible to change the memberclasslibrary without destroying all the pages in all my pageframes?
>
>Thanks
>
>Jim

The first task seems to be rather simple. You open a project, loop through all forms and classes in the project, open each library as a table and strtran(classloc, 'basecontrols.vcx', 'peme_basecontrols.vcx')
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform