[求助]isNumeric
unction TfrmConsumptionInfo.isInteger(s: string): boolean; //自定义函数var
i:integer;
begin
i:=1;
if length(s)=0 then
begin
result:=false;
exit;
end;
while i<=length(s) do
begin
if (isNumeric(s[i])=false) then
begin
result:=false;
exit;
end;
i:=i+1;
end;
result:=true;
end;
为什么到这里就过不去了,是不是那里需要引用下!!! if (isNumeric(s[i])=false) then里的isNumeric;