Delphi控制输入为数字或字母

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

相关文章:

  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
猜你喜欢
  • 2021-11-01
  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2022-02-06
相关资源
相似解决方案