begin
if not (key in ['0'..'9','.',#8]) then<------------------
begin
key:=#0;
end;
end;
if not (key in ['0'..'9','.',#8]) then<------------------
begin
key:=#0;
end;
end;
解决方案 »
- 如何让fastreport 设计的了表纵向打印,不不是指纸张的横纵向?
- dll 中的多线程不能运行?
- 一个内存读取语句的写法
- 我的调用dll中的mdi子窗体的代码,请大家看看是那里出错了,谢谢!
- 求:Delphi面向对象编程和关于Windows编程的电子书籍(格式要CHM的)
- ClientDataSet的内容如何保存到dbf中?
- 想用拨号连接查询远程的数据?有什么好的方案?
- 在客戶端中調用中間層Com+組件,用Create還是用CreateRemote?
- 请教各位在做软件时关于与用友、金碟等财务软件的接口是怎样处理的?他们开放这个接口吗?如何才能拿到?
- 求教
- 如何使用zlib进行压缩?
- 请问怎么把表内容转化为数组?谢谢!
还要检查当前的EDIT.TEXT是否空,是空,在‘.’前加‘0’;
begin
if not (key in ['.','0'..'9'] )and(key<>#13) then
begin
Application.MessageBox('请输入数字','提示',mb_ok);
key:=#0;
end
else
if key=#13 then edit1.SetFocus;end;