Hi,

I'm quite new in PICBasic Programming but I think you should set Port A as digital because all MCU with analog input come up in analog mode.

ADCON1=7

I think this will solve your problem

Hans