本文整理自网络,侵删。
//delphi获取两个字符之间的数
function GetChars(AString: string; fChar, EChar: char): String;
var
i, tmpPos: Integer;
begin
Result := '';
tmpPos := Pos(fChar, AString);
if tmpPos = 0 then
exit;
for i := tmpPos + 1 to Length(AString) do
begin
if AString = EChar then
break;
Result := Result + AString;
end;
end;
相关阅读 >>
Delphi 窗体form的formstyle属性设置为fsstayontop时属性设置不起作用问题探讨。
Delphi 用firedac获取 sql server错误文本信息
更多相关阅读请进入《Delphi》频道 >>