Private Sub Text1_LostFocus()
C.all CheckInput(Text1,500)
E.nd Sub
Private Sub Text2_LostFocus()
C.all CheckInput(Text2,1000)
E.nd Sub
Sub CheckInput(t As ?,x As Integer)
If Val(t.Text)>x Then
MsgBox"请重新输入!"
E.nd If
E.nd Sub
A.Text
B.SelText
C.Control
D.Form