There might be something of use for you here...
http://www.picbasic.co.uk/forum/cont...r-nine-of-them