ADCIN doesn't work on PIC18Fxx31.

Look here:
http://www.picbasic.co.uk/forum/show...6903#post96903