Advertisement

09.16.2007 at 04:35AM PDT, ID: 22831640
[x]
Attachment Details

Vb.Net: Collection

Asked by AWestEng in .Net Editors & IDEs, Microsoft Visual Basic.Net, Visual Studio .NET 2005

Tags: collection

Hi

Having some problem with Collection in Vb.net.

I have this

Dim test1 as string = "12345"
Dim test2 as string = "123456"
Dim test3 as string = "1234567"
Dim cTest as New Collection

cTest.Add(test1)
cTest.Add(test2)
cTest.Add(test3)

If Not cTest.Contains(test3) Then
   '''''''
End if

But the code inside the if statment is executed.

What I'm I doing wrong?


Start Free Trial
[+][-]09.16.2007 at 04:38AM PDT, ID: 19900226

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, Microsoft Visual Basic.Net, Visual Studio .NET 2005
Tags: collection
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09.16.2007 at 08:07AM PDT, ID: 19900689

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628