Impedir digitação

Delphi

28/07/2005

queria incluir um teste para evitar que seja digitado um ´¬´ em um dbedit... é que eu faltei nessa aula!!!


Bruno.preste.ap

Bruno.preste.ap

Curtidas 0

Respostas

Beppe

Beppe

28/07/2005

No OnKeyPress: if Ch = ´¬´ then Ch := #0;

Mas a melhor solução, que lida tbm com o Ctrl+V, é StringReplace(DBEdit1.Text, ´¬´, ´´, []) no OnChange.


GOSTEI 0
Keidysakamoto

Keidysakamoto

28/07/2005

no evento OnKeyPress dele vc coloca
  if Key = ´¬´ then
    Key := #0;



GOSTEI 0
POSTAR