本文整理自网络,侵删。
function Parse(text, sol, sag: string): String;begin Delete(text, 1, Pos(sol, text) + Length(sol) - 1); Result := Copy(text, 1, Pos(sag, text) - 1);end;
procedure TForm1.FormCreate(Sender: TObject);beginCaption:=Parse('123456789','12','89'); //结果 34567end;
相关阅读 >>
Delphi新建服务,停止系统服务,以及获取服务状态和新建系统服务器的方法
Delphi xe5 json与Delphi object的互换
Delphi 从listview组件中的选定行在数据库中删除
Delphi dbgrideh 的分组统计 datagrouping
更多相关阅读请进入《Delphi》频道 >>