Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
Re: editkeypress zahlen und zeichen
18. Feb 2009, 21:21
Hi,
Du kannst es auch so machen:
Delphi-Quellcode:
If not(key in ['0'..'9',#8,'ß','.',*wasauchimmer*])
then key := #0;
Ansonsten findest du die Asciicodes z.B. hier
Michael "Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
|