What version of PicBasicPro are you using ?

Also, by not including all the code, it's like saying you have all the ingredients but not telling us the recipe and then asking people why you cake won't rise !

I'm no expert, but you seem to be setting up ANSEL and ADCON so it's not as if all ports are digital or something like that is the cause, so it could possibly be something in the main part of the code which ou haven't shown.