Dim count = 0
Dim username() As String = {"user", "userr", "userrr"}
Dim password() As String = {"pass", "pass", "pass"}
Dim pass, user As String
user = username(0)
pass = password(0)
If txtuser.Text = username(count) And txtpass.Text = password(count) Then
play.Show()
Else
count = count + 1
If count = 2 Then
MsgBox("incorrect")
Me.Close()
End If
End If
what i am attempting to do is make sure that the corresponding username and password is correct and if any1 would like to give me a way to detect how many usernames i have in the array so i can tell it when to stop looking this would help me so much for my major work thanks

New Topic/Question
Reply



MultiQuote








|