Not sure about Pic Basic, but with PBP it is a good idea to set the pin as a VAR
low0 VAR PORTB.6