有专门的函数吗?
没有,不过很多人写过的;你可以搜索看看,建议自己写一个;
procedure StrToStrings(S, Sep: string;
const List: TStrings);
var
I, L: Integer;
Left: AnsiString;
begin
Assert(List <> nil);
List.Clear;
L := Length(Sep);
I := Pos(Sep, S);
while (I > 0) do
begin
Left := LeftStr(S, I - 1);
List.Add(Left);
Delete(S, 1, I + L - 1);
I := Pos(Sep, S);
end;
if S <> then
List.Add(S);
end;