本文整理自网络,侵删。
function AddStr(const Str: string; const AdditionalStr: string; const DelimiterStr: string): string;begin if Str = EmptyStr then begin Result := AdditionalStr; end else begin Result := Str + DelimiterStr + AdditionalStr; end;end;
procedure TForm1.Button1Click(Sender: TObject);beginMemo1.Text:=AddStr('123----456----789','8888','----');//原始数据://123----456----789//处理后//123----456----789----8888end;
相关阅读 >>
在一个exe文件中查找指定内容,找到则返回起始位置,否则返回0
Delphi 判断iso文件,iso文件头, iso filehead
Delphi 调试ios时出现 please specify exact device preset uuid
更多相关阅读请进入《Delphi》频道 >>