Hi Malcolm,

Read this thread. http://www.picbasic.co.uk/forum/showthread.php?t=543

If you're still stuck let me know.