Iain17

I know what you mean, this would involve some mental recursion and some form of stack data structure. I was kinda hoping for a function (in a dll or somewhere) along the lines of ASP 3.0's eval or execute function.

John