David,
I just tried what you suggested...here's my code in the cbo keypress:
LPARAMETERS nKeyCode, nShiftAltCtrl
* capture the spacebar and treat it as a space
* and not as a selection indicator
IF nShiftAltCtrl = 0 AND nKeyCode = 32
* Spacebar was hit
NODEFAULT
This.value = This.Value + " "
This.Refresh()
ELSE
ENDIF
It no longer acts as the selector when I hit the space bar (yea!!) but it does stop the incremental searching. Is there a way to keep the search going?
Rick
---------------------------------
>Rick,
>
>In the cbo.KeyPress:
>
>if ( nKeyCode = 32 )
> nodefault
>endif
>
>>I'm in a combo-box using incremental search and I want to incrementally search in strings which have embedded spaces.
>>
>>For instance:
>>"Great West - Ohio"
>>I want to be able to enter:
>>"g"
>>"r"
>>"e"
>>"a"
>>"t"
>>" "
>>"w"
>>"e"
>>"s"
>>"t"
>>etc., etc., etc.
>>
>>The problem I'm having is when the spacebar is hit, it's acting as a selector...in terminates the incremental search. I would like to allow the use of the space bar. How do I do that? I tried the keypress event and either I'm using it wrong or????
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only