RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListView.GetSearchString Method

Returns the incremental search string of a list view control.

Pascal
function GetSearchString: string;
C++
__fastcall AnsiString GetSearchString();

Call GetSearchString to obtain the character sequence typed by the user while the list view has input focus. Each time the user types a character, the list view appends the character to the search string and searches for a matching item. A timeout period of less than a second is associated with each character that the user types. If the timeout period elapses before the user types another character, the incremental search string is reset. If the system finds a match, it selects the item and, if necessary, scrolls it into view. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!