can you help me fix this code the frist number of the array is giving a error

        Dim studid() = {7908205555, 89546214, 2435325, 25463, 264326, 263626, 262261}

    Dim id As Integer

    id = Integer.Parse(TextBox1.Text)

    For i = 0 To studid.Length - 1
        If id = studid(i) Then
            ListBox1.Items.Add("the id is number " & id & "is a number ")

        End If
    Next
End Sub

Hint: What is the largest number you can store in an integer?

commented: Also, https://www.google.com/search?q=vb.net+integer+max+value +12

If you really have to use such big numbers, you could use an unsigned int instead. But there's a limit to them as well of course.

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.