I just implemented the same function using an array holding all thebooleans fields describing the objects.
It works well.
Thank you to all of you.
-- Non c'e' piu' forza nella normalita', c'e' solo monotonia.