title: Visual Basic - Getting value from an array with an integer
body: <p>I currently Have an array ...</p>
  
  <p>Dim mTeam(10) As String</p>
  
  <p>In the Form load For visual basic i have</p>
  
  <pre><code>   'Load Teams
      mTeam(1) = "Oklahoma"
      mTeam(2) = "USC"
      mTeam(3) = "LSU"
      mTeam(4) = "Michigan"
      mTeam(5) = "Georgia"
      mTeam(6) = "Texas"
      mTeam(7) = "Tennessee"
      mTeam(8) = "Ohio State"
      mTeam(9) = "Florida State"
      mTeam(10) = "Miami(FL)"
  </code></pre>
  
  <p>Now what im trying to do, is have the user enter a value between 1-10 in a textbox, and in return. A messagebox will appear with the team name. </p>
  
  <p>Example:</p>
  
  <p>User enters 5 into TextBoxNumber, a message box will apear when i hit button ButtonName, and in that message box it will have the word "Georgia".</p>
  
  <hr>
  
  <p>TextBoxNumber (Name of input value)
  ButtonName (button to do all the work and show messagebox)</p>
  
  <p>Any help would be nice, i already have a try catch to have it only take integer values between 1 and 10.</p>
  
  <p>PLEASE NOTE THIS IS FOR VISUAL BASIC , AND IM USING MICROSOFT VISUAL STUDIO 2010</p>