Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Array out of bounds

$
0
0
 Dim User(5) As String

        Do While Reader.Peek() <> -1
            LineRead = Reader.ReadLine()
            User = LineRead.Split(",")

            If User(2) = Txt_Username.Text And User(3) = Txt_Password.Text Then
                Homepage.Show()
                Me.Hide()
            Else
                MsgBox("Invalid Username and Password combination. Please try again.")
            End If
        Loop


        Reader.Close()


I'm not sure what is causing the problem.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>