Forget it. I had dropped the array initialization down further than I thought and it was being initialized each loop. Doh. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100824/807d7afa/attachment.html