Internet Direct (Indy) Version 9.0.1 Beta
Fetch
Parses a value from the delimited input string.

function Fetch(var AInput: string; const ADelim: string; const ADelete: Boolean): string;
Parameters
var AInput: string
Value to be parsed.

const ADelim: string = ' '
Delimiter character(s). Default value is CHAR32 (' ').

const ADelete: Boolean = true
Remove the parsed value from the input string. Default value is True.

Returns
String - Value parsed from the input string.

Description
Fetch is a String function that is used to parse the string in AInput up to the delimiter character(s) in ADelim.

ADelim may contain a single character, a sequence of characters, or the value CHAR0 (Null string).

Fetch can optionally delete the parsed value from AInput when ADelete is True. When ADelete is True, both the parsed value and the delimiter character(s) are removed from the input string AInput.