See this thread http://www.picbasic.co.uk/forum/showthread.php?t=4074

It shows a number of ways to access port pins.