我在一张表单上放置了一个编辑框text1及一个按钮控件Command1,在按钮控件的click事件中添加代码Dim x As Integer
x = Val(Text1.Text)
Rem 上面这句换成x=Text1.Text也一样Select Case x
Case x < 60
Print "不及格"
Case x >= 80
Print "优秀"
Case Else
Print "一般"
End Select
End SubPrivate Sub Command1_Click()
Dim x As Integer
x = Val(Text1.Text)Select Case x
Case x < 60
Print "不及格"
Case x >= 80
Print "优秀"
Case Else
Print "一般"
End Select
End Sub我想问的是当我在编辑框中输入98,为何还是打印“一般”?