CloseMatch method

Applies To
TQDB, TQDBItem, TQDBView

Declaration
function CloseMatch(Partialkey : TKey) : boolean;

Description
The CloseMatch method searches the list of keys for an alphabetical match with the PartialKey parameter:

If an exact match occurs ItemIndex is set to that item and the function returns true.

If the partial key only matches the beginning of a key ItemIndex is set to that item and the function returns false. In either case an OnFound event is triggered.

See also: ExactMatch, PartialMatch, & PatternMatch.