Fórum Campo edit aceitar somente letras #189875
21/10/2003
0
Obrigado.
Bclr
Curtir tópico
+ 0Post mais votado
21/10/2003
Para quem quiser saber:
if not (Key in[´A´..´Z´,#8]) and not (Key in[´a´..´z´,8]) then
Key := 0;
Bclr
Gostei + 1
Mais Posts
21/10/2003
Fernando Lempê
exemplo:
o codigo interno da tecla enter é #13
ficaria assim para o edit nao aceitá-la:
no evento onkeypress do edit vc colocaria
if ( key=13 ) then
key=0;
vc tb pode usar o editmask nele é possivel configurar filtros de teclas
Gostei + 0
21/10/2003
Bclr
if not (Key in[´0´..´9´,#8]) then
Key := 0;
Obrigado.
Gostei + 0
21/10/2003
Bclr
Gostei + 0
09/01/2014
Douglas
Para quem quiser saber:
if not (Key in[´A´..´Z´,#8]) and not (Key in[´a´..´z´,8]) then
Key := 0;
Muito boa a dica Bclr.
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)