Question:
How can I search for items in a ComboBox?
Solution:
To do so, you must set up the ComboBox’s MatchEntry property. This property searches for a text entry (according to what has been typed by the user) that coincides with the data that already exists in the object. The options available for this property are:
- 0 – fmMatchEntryFirstLetter: Searches for an item coinciding with the first character being typed.
- 1 – fmMatchEntryComplete: As each character is being typed, the object searches for an item coinciding with what is being written.
- 2 – fmMatchEntryNone: Does not search for any item in a ComboBox.
The default value for this property is 1 – fmMatchEntryComplete.