[Fixed] UDC - Load Script File - Function bug
Posted: 21 Apr 2015 12:33
Imagine the following script:
Save it to "<xyscripts>\test.xys"
Load it via "Scripting"
- Load Selected Script File
- Load Script File...
or via Run Script... (and paste it).
Do it twice. Before the second turn, change the "a" in the script to "b".
All invocation methods work flawlessly. They return "b" instead of "a" on the second run.
But now create a UDC
Category: Load Script File
Script File <xyscripts>\test.xys
First run: Fine, it reports "a".
Second run (change the "a" to "b" again): It still reports "a"!
Code: Select all
text returnValue();
function returnValue() {
return "a";
}Load it via "Scripting"
- Load Selected Script File
- Load Script File...
or via Run Script... (and paste it).
Do it twice. Before the second turn, change the "a" in the script to "b".
All invocation methods work flawlessly. They return "b" instead of "a" on the second run.
But now create a UDC
Category: Load Script File
Script File <xyscripts>\test.xys
First run: Fine, it reports "a".
Second run (change the "a" to "b" again): It still reports "a"!