<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Robert,<br>
<br>
thanks a lot for v0.66!<br>
<br>
I have been testing the compatibility with Perfect Layout and also
tried the new "return value" handling.<br>
It seems to me like there is still a problem. I tried it in
Fin27/Win10/RGP Lua v.66.<br>
<br>
I call the plug-in with:<br>
local success,d1,d2=finenv.ExecuteLuaScriptItem(script) <br>
<br>
When the plug-in ended without error, but with:<br>
return 11,12,13<br>
<br>
The script above gave these values:<br>
success=true<br>
d1=13<br>
d2=0<br>
<br>
I think this is correct. (However, I have not found it in the
documentation.)<br>
<b><br>
</b><b>BUT: </b>this only happened the very first time when I
called the script directly after starting Finale.<br>
When I run the ExecuteLuaScriptItem a second time, it always results
in:<br>
<br>
success=true<br>
d1="" --or at least it's an "empty nothing" when I print
it with tostring(d1). It's not nil.<br>
d2=0<br>
<br>
So after the first run I can't influence the return value anymore.<br>
Seems like the return value is permanently stored somewhere in RGP
Lua.<br>
<br>
When I restart Finale, it's the same behaviour: first time correct
value 13, after that "".<br>
<br>
Jan<br>
</body>
</html>