help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TStringList.IndexOf

Overrides the TStrings.IndexOf property.

Declaration

Source position: classesh.inc line 579

public function TStringList.IndexOf(

  const S: String

):Integer; override;

Description

IndexOf overrides the ancestor method TStrings.indexOf. It tries to optimize the search by executing a binary search if the list is sorted. The function returns the position of S if it is found in the list, or -1 if the string is not found in the list.

See also

TStrings.IndexOf

  

Find a string in the list and return its position.

TStringList.Find

  

Locates the index for a given string in sorted lists.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505