Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quickest way to copy several methods from one class
Message
 
 
À
21/05/2007 11:46:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01226347
Message ID:
01227327
Vues:
18
>>I have a special incremental search in grid textbox class. Now I want to copy this class functionality into a special editbox class.
>>
>>Open the grid textbox class in the class browser and click on view class code.
>>
>>Then open your editbox class in the class designer and after you add the required method(s), you can copy from the class code listing.
>
>how to open the grid textbox class in the class browser.
>
>as it is not avaialble in vfp/samples.
>
>what is the filename of that class i.e. *.vcx

Hi Bankim,

If you have InGrid class in some library, open this library in Class Browser and then you would be able to see the whole code using View Code button. However, I used a different approach to quickly copy functionality from one class to another:

1. I made a backup of the library (very important)
2. Using my CopyVisualClass program copied this class under different name
3. Opened this classlibrary in Class Browser and re-defined the class to be based on editbox class.

Then verified that everything still works.

However, there is another idea in this thread presented by Gary Foster which in my opinion is even better. Read the whole thread and ask questions, if Gary's idea is not clear for you.
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