Fórum Forçar Digitação de Números #165206
07/06/2003
0
Como desabilito as outras teclas??
Allan Elias Ramos :wink:
Aersoftware
Curtir tópico
+ 0Posts
07/06/2003
Wcprog
begin
if not (key in[´1´..´9´,#8]) then
key := 0;
end;
atenciosamente
Walbert Castro
wcprog@bol.com.br
Gostei + 0
07/06/2003
Aersoftware
Allan Elias Ramos :wink:
Gostei + 0
07/06/2003
Jose Almeida
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
If not ( Key In [#8, ´0´..´9´,´-´,´,´] ) then Abort;
end;
Aqui vc pode digitar ´ - ´ e virgulas.
A função do 8 e permitir o uso do Back Space.
Gostei + 0
08/06/2003
Aersoftware
Allan Elias Ramos :wink:
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)