如何判断Edit是不是整型? 请问各位大虾: 如何判断Edit是不是整型? if Trim(Edit1.Text)=?? then 能不能告诉我??谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure edit1.onkeypress(..)beginif not (key in ['0'..'9',chr(8),chr(13)]) then key:=#0;end; try a := strtoint(Edit.text);except Showmessage('It is Not a Integer');end; if not (key in['0'..'9',chr(8),char(13)]) then key:=#0; TryStrToInt(Trim(Edit.Text));exceptshowmessage('This is not a Int');end; 关于delphi的clientdataset多表更新问题 关于dll的问题? 怎样把PNG绘到按钮上面 用SPCOMM,处理通信通信超时问题 救命啊!关于Word或文字处理! 求救!SQL问题! ServerSocket只要open就报错,什么原因? 用SocketConnection来连接三层的服务器的时候,在启动的时候为什么会自动启动服务端啊?能不能不让他自动启动? 求教delphi中DLL 函数的声明问题 请问:如何拷贝目录下的所有文件(包括子目录)到另外的子目录?一定给分!!! CPU窗口 问一个菜鸟问题~请指教,如何打开一个指定的文件~
begin
if not (key in ['0'..'9',chr(8),chr(13)]) then key:=#0;
end;
a := strtoint(Edit.text);
except
Showmessage('It is Not a Integer');
end;
StrToInt(Trim(Edit.Text));
except
showmessage('This is not a Int');
end;