[Newbies] bags use

Benjamin SALLAS benjamin.sallas at wanadoo.fr
Wed Jun 21 00:45:35 UTC 2006


hello,
I'm trying to use bags correctly, and i need a little help.
I'd like to create a bag with some instance of a class with variables (for example: name, status).
I'd like to make the identity of the bag on the name only, and be able in a loop to get the status of each item.
With my example, the status is 'good' or 'bad', i want to check if one of the item with a certain name has the status 'good'.
Could someone explain me how i can do that?

benjamin


More information about the Beginners mailing list