> Any good reference on recursive functions taht will be helpfull too. Try the chapter on recursion in my tutor Alan G Author of the Learn to Program web tutor http://www.freenetpages.co.uk/hp/alan.gauld