"ad" <fl****@wfes.tcc.edu.tw> wrote in message news:Or**************@tk2msftngp13.phx.gbl...
I have a hashtable name myHash.
sKey is a string, I use myHash[sKey] to retrieve the value of that key.
But is sKey is not in the myHash.Keys, it raise an Exception.
I want to dertiminate if sKey in myHash.Keys.
How can I do that?
I looked at your post.
Started up the SDK documentation (a few seconds)
Typed in "Hashtable." (another few seconds)
And saw "Hashtable.ContainsKey Method" Staring me in the face.
Now granted, I already knew the answer to the question, but it is the OBVIOUS place to look. And,
the method name sort of jumps right out at you.....So the question is....
Why post the question here (few minutes of typing) when it is REALLY easy to find in the
documentation (Few seconds of typing)???
Anyway....Look at the Hashtable.ContainsKey() Method
Bill