Thanks to both. Of ourse the parentheses thin was worng, I was just trying to make the most symplified code. I tt was just one possibility that arose from the code I was doing. -- Thor -- Stockholm -- Sverige