Ah fantastic, thanks for the quick reply. That works perfectly - guess I need to go and educate myself about pointers now!