IncrementalSearch Property
Specifies whether a control supports an incremental search for keyboard steering. Available at design time and run time.
Control.IncrementalSearch[ = lExpr]
Return Value
lExpr
The settings for the IncrementalSearch property are:Setting
Description
True (.T.)
(Default) Supports incremental search.
False (.F.)
Does not support incremental search.
Remarks
Applies To: ComboBox Control | ListBox Control
An example of an incremental search is if you are searching for the word "ELASTIC," you can type E-L-A, and so on. As you type, Visual FoxPro incrementally searches for the combination of letters you have typed to match the word you are looking for. Otherwise, it finds the first word that starts with an E, then the first word that starts with an L, and so on.
Note that the setting of the_INCSEEK System Variable system variable determines how long to wait for the next letter to be typed. You may need to adjust the value of _INCSEEK to make incremental searching work properly.
A combo box with the Style property set to 0 (Dropdown Combo) will only show incremental searching in the text box if the drop-down list is shown. With the Style property set to 2 (Dropdown List), incremental searching will show in the text box, regardless of whether the drop-down list is shown.