TSubstringListInvariant.IndexOf Method

function IndexOf(const S: string): Integer; overload;

The index of the first item equal to S, or -1.

#NameDescription
1S

The text, every text kind.

Returns: Integer - The item's index, or -1.

Remarks:

As TStringList.IndexOf: the list's comparison decides equality; a sorted list is searched by Find.