Valhalla Legends Forums Archive | Visual Basic Programming | Collections

AuthorMessageTime
Adron
How do you use collections with keys?

I'm having trouble with searching for an object in a collection and inserting it if it's missing. I don't like having errors happen routinely, because that completely messes up the "break on error" functionality of the IDE.
January 23, 2004, 9:25 PM
SPY-3
[quote author=Adron link=board=31;threadid=4862;start=0#msg40822 date=1074893151]
How do you use collections with keys?

I'm having trouble with searching for an object in a collection and inserting it if it's missing. I don't like having errors happen routinely, because that completely messes up the "break on error" functionality of the IDE.
[/quote]

explain better what you mean.
August 27, 2004, 2:26 PM
Adron
I don't know a way of looking for an item in a collection that might not exist without possibly triggering an error. I'd like to be able to look for an item and get a status on whether it exists or not. I'd like to be able to do this without trapping an error, because trapping an error is bad.
August 27, 2004, 4:09 PM

Search