Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rename VCX. Any problems doing this?
Message
De
15/02/1999 09:27:11
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00186661
Message ID:
00187662
Vues:
23
>I would like to rename a VCX in one of my projects in VFP6. Can I just rename the file and all references to it (in forms etc..) will be updated? Anything to watch out for?

It is possible to change the name of a VCX either by right clicking in the project manager, or by simply changing the name in Windows Explorer, etc... However, this will NOT change your references, and will cause problems at run time. This is no different than changing from a local class library to one stored on the network that will be shared among developers and applications. It is a time consuming process. What you have to do is rename the vcx, and then run every part of your application, and change every part that blows up on you. It's not pretty, but it is the only way to do it reliably.

Class libraries (VCX's) are designed to be re-used. Creating a specific set of libraries for each application grossly violates this purpose. In addition, class development is a different part of the process than application development. While it is true that each application will have classes that are specific to it and aren't used by any other application. It is critical to look at the development of classes and class libraries with the idea of re-use. I find it helps to have someone to game out how the class will behave. John Petersen and Rod Paddock have a very good book that discusses this subject. "Visual FoxPro 6 Enterprise Development" I highly recommend their book.

Regards,

Jason
Jason Tryon
Senior Systems Analyst / Technical Lead
eBusiness / iPage
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform