You will have to use an OR and a control-register. All APIs state that changing a pin's output will not work when the pin is driven by hardware.
Understandable, but not the answer I was hoping for. :-)
Thanks, Bob. I appreciate the reply. FWIW I think the code generation should strip out the Write() API calls if the hardware pin is enabled.