Thanks! That's very similar to the idea I had, but I thought that perhaps multiarray had it somewhere hidden away. I'll probably use yours -- no need to reinvent the wheel! Brian