全部文本 #16497 原始 编辑

Someone

公开 text v1 · 不可变
·已发布 2005-06-30 16:04 UTC
渲染后的文本正文
Private Sub cmdDetermineGradeLevel_Click()
    Dim intCredits As Integer
    Dim strGrade As String
    
    intCredits = Val(txtCredits.Text)
    
        If intCredits < 32 Then
            strGrade = "Freshman"
        
        ElseIf intCredits >= 32 Then
                If intCredits <= 63 Then
                        strGrade = "Sophomore"
                End If

        ElseIf intCredits >= 64 Then
                If intCredits <= 95 Then
                    strGrade = "Junior"
                End If

        Else
            strGrade = "senior"
        End If
        
    lblGradeLevel.Caption = strGrade
    
End Sub