Thanks a lot. Got my answer at http://www.picbasic.co.uk/forum/showthread.php?t=852