Solved

Dictionary question... .net

Posted on 2014-10-03
2
123 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 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
Comment Utility
Hi,

Maybe

If pair.Value = False Then

Regards
0
 
LVL 33

Author Comment

by:Mike Eghtebas
Comment Utility
It is looking good,

brb
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Log4Net custom Appender not being fired. 5 41
SQl help with selection 14 43
Check if number is currency 15 28
Hide Tab Page 3 18
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 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

12 Experts available now in Live!

Get 1:1 Help Now