Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Dictionary question... .net

Posted on 2014-10-03
2
Medium Priority
?
154 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 53

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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

824 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