NEED help with an array - Programmers Heaven  Howdy, Stranger!
NEED help with an array  flynpat32flynpat32 Posts: 33Member I am
having trouble with an array. The user enters a team and the
array is to out in a textbox the teams rank. Its array index.
All it does is output the team. Please help. I am pulling my
hair out!! Private Sub BtnLookUpTeam_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
BtnLookUpTeam.Click  Dim indexteam As Integer = 0 Dim
foundboolean As Boolean = False  With Me Do Until foundboolean
Or indexteam > 10 If .TxtTeam.Text.ToUpper() = mTeam(indexteam)
Then  foundboolean = True indexteam += 1 End If
.TxtTeamRate.Text = mTeam(indexteam).ToString()  If Not
foundboolean Then MessageBox.Show("Enter a valid team.", "Entry
error.", MessageBoxButtons.OK, MessageBoxIcon.Error) End If  End
With End Sub Private Sub frmTopTenTeams_Load(ByVal sender As
Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Load
Teams mTeam(1) = "Oklahoma" mTeam(2) = "USC" mTeam(3) = "L