标签:
var
List: TStringList;
begin
List := TStringList.Create;
List.Delimiter := ‘-‘;
List.DelimitedText :=Trim(Edit1.Text);
ShowMessage(IntToStr(List.Count)); //2
ShowMessage(List[0]); //abcd
ShowMessage(List[1]); //12ab
ShowMessage(List[2]); //12ab
List.Free;
end;
标签:
原文地址:http://www.cnblogs.com/lantianhf/p/5698967.html