im looking on how you can use an object in an array using a "name" instead of a number.

this would be just like a DataTable where you can use the tables name instead of its position in the array.

anyone have an idea how this is done? or am i looking past something simple?

the only way I can think of would be to create your own class.

the only way I can think of would be to create your own class.

Hi,

Is there any perticular reason to use the Array. In Array datastructure the objects are indexed based on the integer value.

If you want to store the Key-Value pairs,you can use the following objects provided by .Net framework under System.Collections and System.Collections.Specialized namespace.

HashTable
DictionaryBase
NameValueCollection
ListDictionary
HybridDictionary

Thanks,
Kedar.

Hash table is exactly what i wanted thanks alot

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.