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 tdirectory.tfilterpredicate

Delphi修改默认打印机

Delphi中用socket解析域名获得ip地址

Delphi xe2-firemonkey 新功能

Delphi unigui确认对话框

Delphi使用idhttp 获取 httpsurl内容

Delphi winapi: getforegroundwindow - 获取前台窗口的句柄

Delphi 反转字符串方法2

5种运行程序的方法具体应用实例

Delphi xe更改ttrayicon系统任务栏图标(无模糊)

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



打赏

取消

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

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

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

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

评论

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