Solved

NameValueCollection

Posted on 2006-11-16
5
228 Views
Last Modified: 2007-01-01
Hi experts,

How to check if a given key is existed in a NameValueCollection or not?

Thanks!
0
Comment
Question by:kennysflau
5 Comments
 
LVL 6

Accepted Solution

by:
manch earned 63 total points
ID: 17954601

Dim obj as Collection
Dim found as boolean = false

obj = New Collection

found = obj.Contains("KeyUWant to Check")
0
 
LVL 48

Assisted Solution

by:AlexFM
AlexFM earned 62 total points
ID: 17954786
Dim c as NameValueCollection
Dim key as String
...

if ( not c(key) is nothing ) then
    ' key exists
end if
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

785 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