G
Guest
I have a Collection object and I would like to know if a particular key is in
the collection so naturally I try something like:
myObject.Contains(key)
But when I compile the project I get:
'Contains' is not a member of 'Microsoft.VisualBasic.Collection'.
I am running VS 2003. Is 'Contains' a new addition or am I just not calling
it right? If it is truly not available does someone have a workaround. Right
now I do something like:
myObject.Item(key)
which throws an exception when key is not in the collection. I would like a
friendlier response than that.
Thank you.
Kevin
the collection so naturally I try something like:
myObject.Contains(key)
But when I compile the project I get:
'Contains' is not a member of 'Microsoft.VisualBasic.Collection'.
I am running VS 2003. Is 'Contains' a new addition or am I just not calling
it right? If it is truly not available does someone have a workaround. Right
now I do something like:
myObject.Item(key)
which throws an exception when key is not in the collection. I would like a
friendlier response than that.
Thank you.
Kevin