0
Dim mark_value() As Integer = {30, 40, 45, 50, 55, 60, 66, 70, 75, 80, 85, 90, 95, 100}
 Dim Grade_value() As String = {"W", "F", "-D", "D", "+D", "-C", "C", "+C", "-B", "B", "+B", "-A", "A", "+A"}


 temp = rdr(c2)
        For c3 = 0 To 14
          If temp < mark_value[c3]
          grade=Grade_value[c3]
        End If

i get this error from the code message
Operator'<'is not defined for type 'Integer' and '1-dimensional array of Integer'

i have no idea what this means .plz help me

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by y2kshane
1

Line #7 and #8 : Use Parenthesis () for accessing elements from an array in VB.NET

For c3 = 0 To 14
    If temp < mark_value(c3) Then
          grade=Grade_value(c3)
    End If
 Next
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.