General information
Category:
Coding, syntax and commands
Environment versions
Network:
Windows 2003 Server
>What is the easiest way to detect if an index is part of a collection? I have this oSearch collection. Before doing oSearch.Remove(1), I would like to verify if that key exist first.
Rob gave the answer but you *might* get by just by checking the Remove() return value. This will be false if the item was not found - but also false if the Remove() failed for some other reason (which is the possible downside)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only