Code:
ANSEL=%00000000
CMCON0=%00000111
Will do the same as Darrel's suggestion and this
http://www.picbasic.co.uk/forum/showthread.php?t=561
plus the data sheet will actually help you learn why.