本文整理自网络,侵删。
//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 strtofloat 将“字符型”转换成“浮点型”
Delphi在设计时设置tstringgrid控件各列的列宽
Delphi gethomepath - 获取用户程序数据目录
更多相关阅读请进入《Delphi》频道 >>