Solved

Searching the 2-D array

Posted on 2007-03-27
1
156 Views
Last Modified: 2013-11-26
Hi,

I have a 2-D array. First dimension has name of control and the second dimension has the associated value. Let us say first dimension has name of all text boxes and the second has its value. Now how do I seach value for a particular text box, for example, I want to know the value of say txtName?

I do not want to loop through the array as my array will be large and this approach will be time consuimg.

Regards,
MI
0
Comment
Question by:vj_mi
[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
1 Comment
 
LVL 25

Accepted Solution

by:
dstanley9 earned 500 total points
ID: 18802900
The built-in search methods do not support multi-dimensional arrays.

If possible, I would not use an array, but use a Hashtable in .NET 1.1 or a Dictionary<string,???> in .NET 2.0 where ??? is the type of value you want to store.  There are much easier to search and manupulate than a 2-D array.

0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

688 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