本文整理自网络,侵删。
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+access错误"不正常地定义参数对象。提供了不一致或不完整的信息。"
Delphi tlistview(tlistbox+图标显示)
更多相关阅读请进入《Delphi》频道 >>