⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 让edit只接收数字.txt

📁 大量Delphi开发资料
💻 TXT
字号:
procedure TfOilAppend.Edit3KeyPress(Sender: TObject; var Key: Char);
begin
  if Key <> #8 then begin
    if ((Key < '0') or (Key > '9')) and (Key <> '.') then
      Key := chr(0);
    if (Key = '.') and (AnsiContainsText(Edit3.Text ,'.')) then
      Key := chr(0);
  end;
end;


procedure TfOilAppend.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
  if Key <> #8 then
    if (Key < '0') or (Key > '9') then
      Key := chr(0);
end;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -