您的位置:首页 > 其它

TEdit只能输入数据

2005-08-23 14:44 141 查看
EdPayKeyPress(Sender: TObject; var Key: Char);
begin
if ord(Key) in [46, 48..57] then
begin
if ord(Key) = 46 then
begin
if EdPay.Text = '' then
begin
Key := #0;
end else
if Pos('.', EdPay.Text) > 0 then
Key := #0;
end;
end else
Key := #0;
end;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: