>I am using the Ingrid to provide incremental seach capabilities in a grid. The grid is used strictly to locate records from a single table; no changes to the data are required.
>
>I have two problems:
>1. Whenever 0 (zero), is part of the search string, incremental search seems to turn off and I get a message that the control is read only.
>2. Some users have asked that I increase the reset time between keystrokes.
>
>Any help would be appreicated.
>
>Alex Shoob
Alex,
I have modified my copy of Ingrid to take care of these things. Due to the nature, of the changes, I couldn't subclass, but here is what I did.
The ingrid control uses _DBLCLICK as its determination of how long to wait before resetting the search string. I simply added one second to that amount by modifying line 11 of the keypress event to look like the following:
THIS.cSearchString=IIF(m.nElapsedTime>(_DBLCLICK + 1), ;
To handle 0, spacebar, ', and -, I modified line 9 of the same method to read:
CASE BETWEEN(m.nKeyCode, 49, 126) OR INLIST(m.nkeycode,32,45,39,48)
I hope this helps.
Erik Moore
Clientelligence