S
subosoft
Unregistered / Unconfirmed
GUEST, unregistred user!
var
i:Integer;
S:String;
StrList:TStringList;
begin
S:='a1 b1/a2 b2/a3 b3';
StrList:=TStringList.Create;
StrList.Delimiter:='/';
StrList.CommaText:=S;
For i := 0 to StrList.Count-1 do
begin
Memo1.Lines.Add(StrList.Strings);
end;
end;
为什么这样写在MEMO显得是效果是[把‘空格’作为分隔符,而不是‘/’]:
a1
b1/a2
b2/a3
b3
i:Integer;
S:String;
StrList:TStringList;
begin
S:='a1 b1/a2 b2/a3 b3';
StrList:=TStringList.Create;
StrList.Delimiter:='/';
StrList.CommaText:=S;
For i := 0 to StrList.Count-1 do
begin
Memo1.Lines.Add(StrList.Strings);
end;
end;
为什么这样写在MEMO显得是效果是[把‘空格’作为分隔符,而不是‘/’]:
a1
b1/a2
b2/a3
b3