本文整理自网络,侵删。
function IsNumber(pcString: PChar): Boolean;begin Result := False; while pcString^ <> #0 do // 0 indicates the end of a PChar string if not (pcString^ in ['0'..'9']) then Exit; Inc(pcString); end; Result := True;end;
相关阅读 >>
Delphi strtoint 将“字符型”转换成“整数型”
更多相关阅读请进入《Delphi》频道 >>