Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#2

Re: editkeypress zahlen und zeichen

  Alt 18. Feb 2009, 20: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."
  Mit Zitat antworten Zitat