Fórum Edit mudar foco direto #295544
14/09/2005
0
vou explicar...
Tenho um edit (Ex. Edit1) que só Aceita 3 caracteres, eu queria que ao termino que o usuario digitou os 3 caracteres ele iria para o proximo edit.
alguem poderia me ajudar ?
Fernando_cunha
Curtir tópico
+ 0Posts
14/09/2005
00seth
no evento onkeypress do edit, faça:
if length(edit1.text ) = 3 then
edit2.setfocus;
Gostei + 0
14/09/2005
Rjun
if Length(Edit1.Text) >= 3 then Edit2.SetFocus;
Gostei + 0
14/09/2005
Michelli88
if Length(Edit1.Text) = 2 then Edit2.SetFocus;
Gostei + 0
14/09/2005
Michelli88
Gostei + 0
14/09/2005
Rjun
Gostei + 0
14/09/2005
Michelli88
Gostei + 0
14/09/2005
Fernando_cunha
obrigado pessoal...
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)