function Explode(car: char; s:string): TStrings;
var
TS: TStrings;
i: integer;
a: string;
begin
TS:=TStringList.Create;
if Length(s) > 0 then
begin
a:='';
for i:=1 to Length(s) do
begin
if s[i] <> car then a:=a+s[i]
else
begin
if a <> '' then TS.Add(a);
a:='';
end;
end;
if a <> '' then TS.Add(a);
end;
Result:=TS;
end;