macro"UDF"
Code: Select all
[h: varX = "UDF"]
Code: Select all
[h: varX = "default"]
[h: runUDF()]
[varX]
when [h: defineFunction("runUDF","UDF@this",0,0)] ; varX = "UDF"
when [h: defineFunction("runUDF","UDF@this",0,1)] ; varX = "default"
when [h: defineFunction("runUDF","UDF@this",1,0)] ; varX = "UDF"
when [h: defineFunction("runUDF","UDF@this",1,1)] ; varX = "default"
So the controlling variable in the question is indeed newScope. I'm going to edit my original reply back to be correct.