title: Compare String with Strings in array
body: <p>I'm trying to use this script to compare a users input from a text box with the 22 correct words. I'm not looking for multiple cases, such as <code>VICE</code> is in <code>ADVICE</code> so it would be 2 values; <strong>I want it to have the string values to accept only equal values</strong>.</p>
  
  <p>At the moment, it is only recognizing the first word <code>TIED</code> and displays a message box "found", but it doesn't not recognize any other word in the list.</p>
  
  <p>I am writing in visual basic script</p>
  
  <pre><code>Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
      Dim StrCorrect() As String = {"TIED", "VICE", "ICED", "DIVE", "DIET", "DATE", "CITE", "CAVE", "AIDE", "ACED", "CITED", "ACTED", "VACATE", "CATTIE", "ADVICE", "AVIATE", "ACTIVE", "VACATED", "DICTATE", "AVIATED", "ACTIVATE", "ACTIVATED"}
      Dim Find As String = userinput
      For Each Str As String In StrCorrect
          If StrComp(Str, userinput, CompareMethod.Text).ToString = 0 Then
              MsgBox("Found" &amp; userinput)
              Return
          Else : MsgBox("incorrect word")
              Return
          End If
      Next
  End Sub
  </code></pre>