Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quickest way to copy several methods from one class
Message
 
 
À
17/05/2007 12:02:10
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:
01226372
Vues:
15
>>>>Hi everybody,
>>>>
>>>>I have a special incremental search in grid textbox class. Now I want to copy this class functionality into a special editbox class.
>>>>
>>>>What would be the minimal steps to achieve this fucntionality?
>>>>
>>>>Thanks.
>>>
>>>Nadya,
>>>
>>>In that case I would put the incremental search in a function and have both classes call that function
>>>
>>>Cheers,
>>
>>Good idea. In the meantime I cheated. I copied this class and then redefined to be editbox based. I'm now going to test it in a grid.
>>
>>BTW, the function idea is not that easy to implement, since there are several methods involved anyway...
>
>You could have several functions. It's still one place to maintain the code
>
>OR
>
>You could make an IncrementalSearch class. Then in the textbox/editbox instantiate that class and add the object as a property

Gregory,

It is not that simple. You still need to somehow pass the functionality of keypress, mouseup/mousedown methods + the object reference.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform