delphi 根据关键字取关键词以后的字符串


本文整理自网络,侵删。

 
function GetStrtoend(StrSource, StrBegin: string): string; // (源字符串,开始字符串)
var
  in_star: Integer;
begin
  in_star := AnsiPos(StrBegin, StrSource);
  Result := copy(StrSource, in_star, length(StrSource) - in_star + 1);
end;


procedure TForm1.Button1Click(Sender: TObject);
begin
Memo2.Text:=GetStrtoend(Memo1.Text,'Memo1');
end;

相关阅读 >>

Delphi编程启动服务停止服务新建服务的方法

Delphi 创建并调用 dll

Delphi实现屏幕抓图

Delphi fmx 图像处理成圆角图像

Delphi �c 如何将多个文件扩展名传递给tdirectory.getfiles?

Delphi 移动端使用 sqlite数据库查询

Delphi 从dbgird中导出到excel

Delphi调用sql分页存储过程实例

Delphi 热键声明和使用

Delphi winsocks检测某个tcp端口师傅正在被使用

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



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...