L
liuchong
Unregistered / Unconfirmed
GUEST, unregistred user!
这个可用:<br>OnKeyPress里写:<br>begin<br> if (not (Key in ['0'..'9',#8])) or (StrToIntDef(TEdit(Sender).Text+Key,0)>High(Word)) then<br> begin<br> Key:=#0;<br> Beep();<br> end;<br>end;