CutLeft
Cuts the part of the original string up to the specified delimiter
Syntax
function CutLeft(var aInText: string; aDelimiter: string): string;
Parameters
- aInText
- type: string
- functions: the source string
- aDelimiter
- type: string
- functions: delimiter
Returned value
- type: string
- functions: cut part
Notes
- Variable aInText as result of operation must contain the part that remained
- aDelimiter is removed during operation
Examples
var aStr='substr1|substr2|substr3'; var sub1:=CutLeft(aStr,'|'); //aStr='substr2|substr3' //sub1='substr1'