Overrides the TStrings.IndexOf property.
Source position: classesh.inc line 1148
public function TStringList.IndexOf( |
const S: string |
):Integer; override; |
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.
|
Find a string in the list and return its position. |
|
|
Locates the index for a given string in sorted lists. |