当前位置:编程学习 > Delphi >>

Delphi控制输入为数字或字母


Delphi 控制输入为数字或字母

if not (Key in ['0'..'9', 'a'..'z', 'A'..'Z', #8, #13]) then
begin
  Key := #0;
  ShowMessage('请输入数字或字母');
end;




摘自 Ciske Liu
补充:软件开发 , Delphi ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,