代码如下
If Txt1.Text <> Int(Txt1.Text) Then MsgBox "你输入的有小数", 48 + 1, "提示" And Txt1.Text = ""
请各位大虾解决下
代码如下
If Txt1.Text <> Int(Txt1.Text) Then MsgBox "你输入的有小数", 48 + 1, "提示" And Txt1.Text = ""
请各位大虾解决下
If InStr(Text1.text, ".") > 0 Then
MSEG=MsgBox ("你输入的有小数", 0, "提示" )
Text1.Text = ""
end if
If Txt1.Text <> Int(Txt1.Text) Then
MsgBox "你输入的有小数", 48 + 1, "提示"
Txt1.Text = ""
end if