delphi中判断字符串是否为数字


本文整理自网络,侵删。

 
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 webbrowser1提取网页中的所有链接、点击第 n 个链接

Delphi 完全自定义窗体风格的实现

Delphi formactivate与formshow事件有什么区别

Delphi 判断某个磁盘分区是否存在

system单元一些有用的变量或者常数

Delphi 一个线程安全的轻量级的日志类

Delphi几个进制相关的代码(hextoint、hextoasc)

Delphi fdconnection1 获取数据库总记录数

Delphi strutils.reversestring - 翻转字符串

Delphi hexstrtostream

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...