I need help with my VB prog, so basically its a Login App that has a textbox for Username and password, with the labels and w/e. So i already have everything prepared for actual third party input, i have the text in username(username.text) < 5 characters to display too short. I have a bunch of those kinds of things, now i created an Array called MyUserNameArray. I want the application to verify that the username.text is a value within the UserNameArray. And I also have an array for passwords, with Password.Text and w/e.
So it basically looks like this (i know its probably way wrong, try to understand what im doing):
If (Username.Text.Length < 5) Then MessageBox.Show("Username is too short, please try again")
Dim MyUserNameArray() As String
MyUsernameArray = MyUserNameArray("Billy123, winter4, autumn69, spring9669")
//i have no freekin clue what im doing int he above
If Username.Text.Contains(MyUserNameArray()) Then MessageBox.Show("Excellent, Your login was sucessful") Else MessageBox.Show("Your Username is Invalid")
I also tried chaning the 4th line to: If Username.Text(MyUserNameArray)
helppp
So it basically looks like this (i know its probably way wrong, try to understand what im doing):
If (Username.Text.Length < 5) Then MessageBox.Show("Username is too short, please try again")
Dim MyUserNameArray() As String
MyUsernameArray = MyUserNameArray("Billy123, winter4, autumn69, spring9669")
//i have no freekin clue what im doing int he above
If Username.Text.Contains(MyUserNameArray()) Then MessageBox.Show("Excellent, Your login was sucessful") Else MessageBox.Show("Your Username is Invalid")
I also tried chaning the 4th line to: If Username.Text(MyUserNameArray)
helppp
Comment