TSubstringListAscii.ExtractItem Method

function ExtractItem(const S: string; const Direction: TDirection): Substring; overload;

Extract from either end: 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: Substring - The item, as Extract returns it; the empty text when no item is equal to S.