begin
TmpStrList := TStringList.Create;
try
TmpStrList.Delimiter := '-';
TmpStrList.StrictDelimiter := True;
TmpStrList.NameValueSeparator := #0;
TmpStrList.Duplicates := dupAccept;
TmpStrList.QuoteChar := #0;
DoSomething;
finally
TmpStrList.Free;
end;
end;
标签:分割,end,DoSomething,TStringList,TmpStrList,Duplicates,finally,字符串 From: https://blog.51cto.com/u_16076050/6195819