合格与不合格判断问题
If Text4.Text >= "2%" Or Text8 >= "2%" Or Text12 >= "2%" Or Text16 >= "2%" Or Text20 >= "2%" ThenText51.Text = "不合格"
Else
Text51.Text = "合格"
End If
超过9%就不对了。10%显示是合格。请问是怎么回事?没有%就正常
Private Sub Command1_Click() s = Text1.Text nums = Left(s, Len(s) - 1) If Right(s, 1) = "%" And IsNumeric(nums) Then V = Val(nums) End If MsgBox V * 2 End Sub