Explanation:
The problem here is that FoxPro does not really have local variables. In every other development language a local variable is only visible in the location where it is declared (including parameters).
FoxPro however gives the runtime code for TextMerge access to locals and therefore violates this visibility rule.
We have added code to our compiler and runtime to emulate this (to make locals visible to other code): when a function or method is marked with a special attribute then we publish the locals as a kind of "pseudo private" variable and after the function call we remove them again.
You can find the code for this attribute here:
https://www.xsharp.eu/runtimehelp/html/ ... ribute.htm
The compiler detects all locals that were defined for the function call and makes these available.
It looks like we have forgotten to include parameters in this list.
Robert