procedure TfrmCbywcl.edtDnhKeyPress(Sender: TObject; var Key: Char);
begin
if not (key in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', char(VK_BACK),
char(VK_RETURN), char(VK_LEFT), char(VK_UP), char(VK_RIGHT), char(VK_DOWN)]) then
key := #0;
end;
begin
if not (key in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', char(VK_BACK),
char(VK_RETURN), char(VK_LEFT), char(VK_UP), char(VK_RIGHT), char(VK_DOWN)]) then
key := #0;
end;
if key<'0' and key>'9' then
key:=chr(0);
if key<'0' and key>'9' then
key:=chr(0);
strtofloat()
except
//出错
end;
请教该如何改呢?
if key=Char(VK_Return) then .....该怎么写?才转到Delphi,不要嫌烦啊。:)
请教该如何改呢?
if key=Char(VK_Return) then .....该怎么写?才转到Delphi,不要嫌烦啊。:)