All pastes #16500 Raw Edit

Stuff

public text v1 · immutable
#16500 ·published 2005-06-30 16:13 UTC
rendered paste body
Private Sub cmdDetermineGrade_Click()
    Dim intNumericGrade As Integer
    Dim strGrade As String
    
    intNumericGrade = Val(txtPoints.Text)
    
        If intNumericGrade >= 90 Then
            strGrade = "A"
            
        ElseIf intNumericGrade < 90 Then
                If intNumericGrade >= 80 Then
                   strGrade = "B"
                End If
                
        ElseIf intNumericGrade < 80 Then
                If intNumericGrade >= 70 Then
                   strGrade = "C"
                End If
                
        ElseIf intNumericGrade < 70 Then
                If intNumericGrade >= 60 Then
                   strGrade = "D"
                End If
                
        Else
            strGrade = "F"
        End If
    lblGrade.Caption = strGrade
    
        
End Sub