When I switch to portB instead of LATB to read, I get nothing from my code.

BTW I have 20K pull downs and dip switches tied to +vcc to switch in the bit pattern. There should
be NO case when the output is nothing....even if pullups or pulldowns are messed up.

Nick