@bienieck wrote:But what if it is a connection refnum and I do the reconnection with a new refnum in place?
This should make the old ref invalid thus ByRef would be required IMHO. Yet.... If I understand you correctly, it didn't matter in your case, right?
Maybe your reconnect reuses the refnum?
Yet this is highly speculative from my side