//que des chiffres procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char); begin if not (Key in ['0'..'9']) then Key := #0; end; //que des lettres procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char); begin if not (Key in ['a'..'z']) then Key := #0; end;
Aucun commentaire:
Enregistrer un commentaire