Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Dictionary question... .net

Posted on 2014-10-03
2
Medium Priority
?
150 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 52

Accepted Solution

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

Maybe

If pair.Value = False Then

Regards
0
 
LVL 34

Author Comment

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

brb
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

722 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