procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char); begin if (Key in [#64, #37, #38]) then Key := #0; end;