Q qianwt Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-10 #2 在Edit的OnKeyPress事件中 if not (key in ['0'..'9'] then key := #0;
L lanbing1400 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-10 #3 if not (key in ['0'..'9',#8] then key := #0; #8为了可以删除 这种问题以前很多了,下次问时记得先搜索一下原来的帖子
L laohe Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-10 #6 在onKeyPress事件里写 if not (key in['0'..'9']) and(key <>#8) then//数字和退格以外的建,一律为空 key:=#0;