# 急 !!! Setfocus 问题 ???

Posted by nobody on September 12, 1998 at 09:11:29:

相邻两 text control(不相邻则不会有问题),其 maxlength 各定 5 及 10, 但是不知为何当 text1 输入超过长度时, label1 的值并未显示在萤幕上??? 不晓得应如何解决

sub text1_lostfocus()
if len(text1.text) > 5 then
label1.caption = "error length"
text1.setfocus
end if
end sub

sub text2_lostfocus()
if len(text2.text) > 10 then
label1.caption = "error length"
text2.setfocus
end if
end sub

Follow Ups:

- Re: 急 !!! Setfocus 问题 ??? 小吴 07:40:14 9/14/98 (1)
  - Re: 急 !!! Setfocus 问题 ??? nobody 12:08:37 9/15/98 (0)