You should give all info in each thread. Saves the people trying to help time if they do not have to go back and search your old post. I for one will not take the time. A minute or so of your time telling the PIC and posting the whole code will get answers, or at least better answers

Look at these:
http://www.picbasic.co.uk/forum/showthread.php?t=562
http://www.picbasic.co.uk/forum/showthread.php?t=561

Basically if you want the pin to be digital, tell it. If the pin is to be analog, tell it. Just like setting the TRIS.