procedure TForm1.LabeledEdit1KeyPress(Sender: TObject; var Key: Char); begin if Key in ['a'..'z', 'A'..'Z'] then Key:= #0; end;