digimortal
Programmer
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
const
ValidInput = [ '0'..'9', #8];
begin
if not ( key in ValidInput ) then
begin
key := #0;
Beep;
end;
end;"
How can I change this code so that it will work with C++ Builder? I want this; Users can not enter characters other than numbers in an editbox... BTW I don't want to use a MaskEdit
Thanks in advance...
const
ValidInput = [ '0'..'9', #8];
begin
if not ( key in ValidInput ) then
begin
key := #0;
Beep;
end;
end;"
How can I change this code so that it will work with C++ Builder? I want this; Users can not enter characters other than numbers in an editbox... BTW I don't want to use a MaskEdit
Thanks in advance...