本文整理自网络,侵删。
function StringsToStr(const vList:TStrings):string;var i:Integer;begin Result := ''; for i:=0 to vList.Count-1 do begin if Result <> '' then Result := Result+'#'+vList.Strings[i] else Result := vList.Strings[i]; end;end;
//String转换成TStringsfunction StrToStrings(const Str:string;var vList:TStrings):Integer;begin Result := ExtractStrings(['#'],[' '],PChar(str),vList);end;
相关阅读 >>
Delphi strutils.leftstr、strutils.rightstr - 提取左右字符串
Delphi winapi: openprocess、getexitcodeprocess、terminateprocess (qq)
Delphi (user agent) of a twebbrowser
更多相关阅读请进入《Delphi》频道 >>