I knew there was a "fussy" code writing thing in that. Better explanation at the following link
http://www.picbasic.co.uk/forum/showthread.php?t=6931&

Glad to hear it works.