Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quickest way to copy several methods from one class
Message
From
17/05/2007 12:10:44
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01226347
Message ID:
01226381
Views:
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.

Nothing ever is. But a couple of functions wouldn't hurt I take it
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform