Hi Cameron,
THANKS for your reply. As you may have seen I managed to hack up something already

It seems to do the same thing as your solution. Great minds think alike huh?

Still, THANKS a lot. If my solution breaks I will have an alternative to look at

Pedja
Cameron Braid wrote:
Here's a rough class (typed in my mail program and therefore not compiled, let alone tested) that could do this for you...