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

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

thnx man im new to vb.net
old habits from c++ :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.