Autor Beitrag
Jagg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 635



BeitragVerfasst: Fr 24.01.03 14:01 
Hallo,Leute !

Ich habe diesen Code :
ausblenden Quelltext
1:
2:
if not (key in ['0'..'9',#8]) then 
    key:=#0;

....hiebei darf in dem feld nur Zahlen eingegeben werden....jetzt will ich das nur "Buchstaben" (große und kleine) eingeben werden können.
Wie mach ich das ?
vllt so ?
ausblenden Quelltext
1:
2:
if not (key in ['a'..'z',#8]) then 
    key:=#0;


und noch was,ich will das auch bestimmt Buchstaben(sowohl groß als auch klein) eingegeben werden,kann man das wie oben auch realisieren ?

Jagg !
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Fr 24.01.03 14:15 
Hallo,

ausblenden Quelltext
1:
2:
if not (key in ['A'..'Z', 'a'..'z', 'ä', 'ö', 'ü', 'Ä', 'Ö', 'Ü', 'ß', #8]) then 
    key:=#0;

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 24.01.03 21:31 
schau dir mal die Delphi kompo TmaskEdit an !!! die ist bei delphi normalerweise mit dabei ! die kann sowas sehr komfortabel !!

_________________
In the beginning was the word.
And the word was content-type: text/plain.