Cuts the part of the original string up to the specified delimiter
function CutLeft(var aInText: string; aDelimiter: string): string;
var aStr='substr1|substr2|substr3'; var sub1:=CutLeft(aStr,'|'); //aStr='substr2|substr3' //sub1='substr1'