In fact, you should use LATF.x instead of PORTF.x ...
Alain, OP says WHILE:WEND didn't work.. not sure why... sounds odd...