You insist on TRIS. The purpose of TRIS is completely different than what you trying to do...

You set once on the top of your program what every port will be (input or output) with the TRIS command and then you do not touch it again. Except if you want to change a port from output to input intentionally.

If you want to control the state of an output port you only use High and Low of that specific port.

Ioannis