Indy 9
Fetch
See Also, Unit: IdGlobal
Parses a value from the delimited input string.
function Fetch(var AInput: string; const ADelim: string = IdFetchDelimDefault; const ADelete: Boolean = IdFetchDeleteDefault; const ACaseSensitive: Boolean = IdFetchCaseSensitiveDefault): string;
Unit
IdGlobal
Parameters
var AInput: string
Value to be parsed.
const ADelim: string = IdFetchDelimDefault
Delimiter character(s). Default value is IdFetchDelimDefault.
const ADelete: Boolean = IdFetchDeleteDefault
Remove the parsed value from the input string. Default value is IdFetchDeleteDefault.
const ACaseSensitive: Boolean = IdFetchCaseSensitiveDefault
Ignore case when comparing values. Default value is IdFetchCaseSensitiveDefault.
Return Value
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). The default delimiter is IdFetchDelimDefault.

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.

ACaseSensitive indicates if Fetch can ignore case when comparing values in AInput. The default value for ACaseSensitive is IdFetchCaseSensitiveDefault. When ACaseSensitive is True, Fetch calls the FetchCaseSensitive to perform the case sensitive comparisions required for the method.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.