TSubstringListAscii.RemoveItem Method

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

Deletes the first (FromBeginning) or last (FromEnd) item equal to S.

#NameDescription
1S

The text, every text kind.

2Direction

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

Returns: Integer - Its index, or -1 when there is none.