Solved

Dictionary question... .net

Posted on 2014-10-03
2
145 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 500 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

Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

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…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

632 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