Hi,
Just read the Port register:
Code:
myValue = PortB
That's it.

/Henrik.

EDIT: Make sure to check and setup stuff like ADCON, CMCON for any pins you're going to use.