Excellent,thanks John.
I think part of the problem i had was that i was reading these examples rather than writing them.I find it a lot easier to understand the construction when i have to think about what i'm going to write.
@Seraph - Thanks for the example and the link.I will have a look at that tomorrow.
All the best.