偶是一个刚接触VB的小菜鸟 编了一个很简单的程序,如下: Private Sub Form_Click() Dim number As Integer Dim score As Integer Dim py As String number = InputBox("请输入学生的学号") score = InputBox("请输入学生的分数") Print "学号:"; number Print "分数:"; score Select Case score Case score <= 39 py = "Fail" Case score <= 49 py = "Poor" Case score <= 59 py = "Fair" Case score <= 79 py = "Good" Case score <= 100 py = "Verry good" End Select Print "评语:"; py End Sub
问题是:关于学生分数评语(py)不显示出来 如下所示 学号:2 分数:86 评语: 请问高手错在什么地方,怎么修改?万分感谢. |