Don,
Combos already have incremental search functionality built into it. Set the IncrementalSearch property to .T. to turn it on. The issue with this is that users must type relatively quickly to get the search to work. The time between keystrokes can be set using the _DBLCLICK variable (prior to VFP 7) or _INCSEEK (VFP 7 and beyond).
See VFP Help for _INCSEEK for more information.
HTH.
>I have a ComboBox in my form:
>
>BoundColumn: 3
>
>BoundTo: .T.
>
>ControlSource: dd_lar.lr_projid
>
>RowSource:
>SELECT pj_pcode, pj_title, pj_id FROM dd_proj ORDER BY pj_pcode into cursor projlist
>
>RowSourceType:
>3 - SQL Statement
>
>
>
>pj_pcode looks something like: LCAC41SA92, LSD43PMA90, etc...
>
>I want to be able to type in 'LS...' and have Index (item) to move
>from 'AGF...' to 'LCA...' to 'LS...'.
>
>How do I code this?
>
>Don K
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao