Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COThe first part of your answer is already explained by Reed Copsey's one (and his comments above): `.Contains` is not one of the methods of an array; you can use it with an array via `Enumerable.Contains` from LINQ. Thus, to make the OP's code work you have to account for LINQ: by adding a reference to LINQ (in .NET 3.5 and higher) or the whole LINQ library in older versions (http://stackoverflow.com/questions/2138/linq-on-the-net-2-0-runtime).
      singulars
    2. COContains may be a member of System.Linq.Enumerable but you don't have to add it as a reference, at least not in .Net 4 on up, it comes "preloaded" in references. I answered the OP's question with code I tested myself in VS rather than just comment on it, maybe I should have been more clear about LINQ. For the OP, check out [link](http://msdn.microsoft.com/en-us/library/bb352880(v=vs.100).aspx) or message me if you have problems.
      singulars
    3. COVarious hours before your wrote your answer, I was thinking like you (it works without reference) and that's why I refer to the comments above and to the Reed Copsey answer. Even though you can do: Dim myArray() As String myArray.Contains. This Contains is a LINQ extension method which can only be used if the LINQ reference is set in the project. You might not need to write Imports System.Linq because is preloaded (as explained in one of the aforementioned comments). The safest thing is writing Imports System.Linq anyway. If you are in a .NET before 3.5 you would have to add LINQ.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload