//Split the string according to the string, which is equivalent to the split function in vb
function SplitString(const Source,ch:string):TStringList;
var
temp:String;
i:Integer;
Begin
Result:=TStringList.Create;
//If it is an empty string, return to an empty list
if Source=''
then exit;
temp:=Source;
i:=pos(ch,Source);
while i<>0 do
Begin
Result.add(copy(temp,0,i-1));
Delete(temp,1,i);
i:=pos(ch,temp);
end;
Result.add(temp);
end;
www.sinoPRise.com