listview FindCaption method
Return to Introduction  Previous page  Next page
Applies to
acListView and acDBListView components.  

Declaration
function FindCaption(const Caption: String): TListItem;  

Description
The FindCaption function finds the list item, if any, with specified caption. This is another, overloaded variation of standard FindCaption method, but much simplified.  

Notes
iiinfo The Caption parameter can be case insensitive, so, for example, if you search for "tEsT", the function can return the list item where caption is "Test".  
iiwarning This type of FindCaption method exists only in Delphi 4/C++ Builder 4 and higher.  

Original code
{$IFDEF D4}  
function TacCustomListView.FindCaption(const Caption: String): TListItem;  
begin  
  Result := inherited FindCaption(0, Caption, False, True, False);  
end;  
{$ENDIF}  

See also
GetColumnAt method.