Delphi使用什么函数检验字符串是不是数字??如:‘1234’是字符串的数字。 如上!网上找不到 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用一个常量数组就可以了const IA:array [0..9] of char ('1','2',...'0');beginif 值 <> IA thenshowmessage('不是数字')elseshowmessage('这是一个数字')end; if StrToIntDef(yourstring,-10000)=-10000 then{用默认判断}... procedure TForm1.Btn1Click(Sender: TObject);var i:integer;begin if TryStrToint('1234',i) then Showmessage('是数字') else Showmessage('不是数字');end; 千古难题,古今罕见,旷世难题求解!高手进,低手进来学习! speedbutton 点击的时候如何显示矩形虚线? 请教一个Sql语句的写法! 如何实现机房的一对多控制、聊天呀? 急 怎样和.net Socket进行通讯阿? 如何把xml文档加载到treeview 在线。。。help!!!!如何解决显示数据乱码问题? 如果控制鼠标右键? 各位高手,怎样用Delphi编写多语言支持的系统? TreeView的节点问题 Delphi6 VS. Delphi7 请教两个基本的问题
const IA:array [0..9] of char ('1','2',...'0');
begin
if 值 <> IA then
showmessage('不是数字')
else
showmessage('这是一个数字')
end;
{用默认判断}
...
var i:integer;
begin
if TryStrToint('1234',i) then Showmessage('是数字')
else Showmessage('不是数字');
end;