• Welcome to Valhalla Legends Archive.
 

Collections

Started by Adron, January 23, 2004, 03:25 PM

Previous topic - Next topic

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.

SPY-3

Quote from: Adron on January 23, 2004, 03:25 PM
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.

explain better what you mean.

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.