DELPHI把一个字符串中的某个子串,用另一个子串去替换

2022-11-25 12:42:20 作者:admin

本文整理自网络,侵删。

 DELPHI把一个字符串中的某个子串,用另一个子串去替换function StrReplace(s,oldstr,newstr:string):string; //字符串替换varSelPos,SelLen: Integer;beginSelPos := Pos(oldstr, s);while SelPos > 0 dobeginSelLen := Length(oldstr);delete(s,SelPos,SelLen);insert(newstr,s,SelPos);SelPos := Pos(oldstr, s);end;Result:=s;end;

相关阅读 >>

Delphi 遍历文件单元文件

Delphi中把执行文件内存中的dll的代码全部保存下来

Delphi远程线程注入获取qq密码

Delphi api读写ini文件

Delphi调用android振动功能

Delphi 如何得到动态链接库的输出函数tdump命令

Delphi pagecontrol不�@示tab方式

Delphi image上文字平滑移动

Delphi 多函数形式的多线程同步-线程执行顺序

Delphi spy++ 拖拽功能

更多相关阅读请进入《Delphi》频道 >>



在线咨询 拨打电话