Thank you,
it works. I have complicated myself!
But how I retain this result in a variable to work with it.
Because I think that must be situations in wich you put results from 
some calculations in an array, and then due tu a condition, you want to 
take that specific value to work further with it
Adrian
-- 
Posted via http://www.ruby-forum.com/.