Solved

Dictionary question... .net

Posted on 2014-10-03
2
128 Views
Last Modified: 2014-10-03
I have a dictionary variable like:

    Dim boldataPairMatching As New Dictionary(Of String, Boolean)

which has been initialized like:
boldataPairMatching.Add("FirstNameTextBox", False)
boldataPairMatching.Add("LastNameTextBox", False)
boldataPairMatching.Add("AddressTextBox", True)
boldataPairMatching.Add("CityTextBox", False)
boldataPairMatching.Add("StateTextBox", False)
boldataPairMatching.Add("ZipCodeTextBox", True)

Open in new window


Then I loop throgh it using:
          
       For Each pair In boldataPairMatching
                If pair(XXXXXXXX) = False Then
                      MessageBox.Show("It is False")
                Else
                     MessageBox.Show("It is True")
                End If
            Next

Open in new window


Question: How do I complete this line:   If pair(XXXXXXXX) = False Then
0
Comment
Question by:Mike Eghtebas
2 Comments
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 40360927
Hi,

Maybe

If pair.Value = False Then

Regards
0
 
LVL 33

Author Comment

by:Mike Eghtebas
ID: 40360929
It is looking good,

brb
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

937 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

10 Experts available now in Live!

Get 1:1 Help Now