Solved

can't locate array.contains in VS2010 ( VB.NET )

Posted on 2012-03-11
1
202 Views
Last Modified: 2012-03-15
hello,

 the following logic ( specifically arrExceptions.Contains(ch)) works fine in VS2008, but not in VS2010, may be i am missing an imports or something ...

   Private Function strFilterExceptions(ByVal strToken As String, ByVal arrExceptions() As Char) As String

      strFilterExceptions = ""

      For Each ch As Char In strToken
         If Not arrExceptions.Contains(ch) Then
            strFilterExceptions += ch
         End If
      Next

      Return strFilterExceptions
0
Comment
Question by:AlexF777
1 Comment
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
Comment Utility
You need to Imports System.Linq, either at the file level, or in the global Imported namespaces list in the Project's properties Referneces tab.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now