HashTable LookUP

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a hash table;

dim h as new hashtable
h.Add (0, "No Choice")
h.Add(1, "First Choice")
h.Add(2, "Second Choice")

What I want to do is supply a value such as "First Choice" and return the
key 1. I have found out how to enumerate all the values to the console, but
I simply want to return the Key for a specific value or the value for a
specific key. Any help would be appreciated. Thanks.
 
Back
Top