在Edit的键盘事件中控制或改用TMaskEdit
解决方案 »
- 怎样将Panel上显示的内容打印出来
- MIS项目(餐饮),寻兼职
- clientdataset.append怎么把前一条记录冲掉了?
- 怎样在ClientSocket发送数据时,在ProgressBar中显示进度?
- 有什么反编译工具能把Delphi生成的exe文件还原成原来的工程文件?在线等.
- 数据库添加数据出现错误,菜鸟求救!!
- 请问各位:如何将DBGrid的中的内容读入到二维数组中
- 关于JPG转化为BMP的问题
- 再问一个小问题,在Delphi中如果跳出过程,用什么语句?分数不多但很容易得,快来抢分啊
- 怎么加进度显示????????
- MsSQL与MySQL有何区别?DELPHI应选择哪种作数据库?
- 如何取的服务器的时间?
begin
if not (key in ['0'..'9']) then begin
key := #15;
end;end;
begin
if not (key in ['0'..'9']) then
Key:=#0;
end;
begin
if ord(Key)=8 then begin
exit;
end;if (editCustId.SelLength = 8)
and ((ord(Key)>=48) and (ord(Key)<=57) or (ord(Key)=8) or (ord(Key)=36) or (ord(Key)=35) or (ord(Key)=38) or (ord(Key)=40) or (ord(Key)=37) or (ord(Key)=39)) then
begin
exit;
end;
begin
if ord(Key)=8 then begin
exit;
end;//以下同时设置了文本框的长度不能超过8
if (Edit1.SelLength = 8)
and ((ord(Key)>=48) and (ord(Key)<=57) or (ord(Key)=8) or (ord(Key)=36) or (ord(Key)=35) or (ord(Key)=38) or (ord(Key)=40) or (ord(Key)=37) or (ord(Key)=39)) then
begin
exit;
end;