>>>>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