TSubstringListAscii.IndexOfItem Method

function IndexOfItem(const S: string; const Direction: TDirection): Integer; overload;

IndexOf from either end: FromBeginning the first item equal to S, FromEnd the last; -1 when there is none.

#NameDescription
1S

The text, every text kind.

2Direction

FromBeginning: the first equal item; FromEnd: the last.

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