Um unico tipo de informação no LabeledEdit

Delphi

12/10/2003

Ae, eu to fazendo uma agenda, e quero k no LabeledEdit1 so aceite numeros, letras outro tipo de informação ñ aceita.


Bigtama

Bigtama

Curtidas 0

Respostas

Beppe

Beppe

12/10/2003

Coloque no OnKeyPress:
if (Key <> #9) or not IsCharAlphaNumeric(Key) then Key := 0;

Ataliba


GOSTEI 0
Aristodemo

Aristodemo

12/10/2003

no OnKeyPress...

if not (Key in [´0´..´9´, #13, chr(VK_BACK)]) then Key := 0;

Abraços...


GOSTEI 0
POSTAR