title: Using the contains() method
body: <p>Hello I am trying trying to use the contains method to see if a list-block (which exclusively consists of filepaths) 'contains' a certain string. It is supposed to remove the respective entry (in a for loop) if the string is contained in the filepath.</p>
  
  <pre><code>    Dim index As Integer = findNumFiles("Archer", 6) '//returns number of files in archer directory
      Dim iString As String = "Archer"
  
  
  
      For i = 0 To index
      If Lookup.Items(index).contains(iString) Then
          removeFromList(Lookup, index) '//passes "Lookup" as a ListBlock name and removes the index number
      End If
      Next
  </code></pre>
  
  <p>a sample filepath would be </p>
  
  <pre><code>"Z:\Movies and TV\Archer\Season 6\1.mp4"
  </code></pre>
  
  <p>edit: I forgot to mention that it does not work. I tested the command with a list entry simply named "archer" and if the iString is = to "archer", that list entry is removed. It seems the fact that I'm attempting to use the contains method on a filepath is the problem but I'm not sure. 
  Thanks for any insight!</p>