[JW Lua] Return value issue with v0.66
Jan Angermüller
jan at angermueller.com
Sun Mar 12 19:10:52 CET 2023
Robert,
thanks a lot for v0.66!
I have been testing the compatibility with Perfect Layout and also tried
the new "return value" handling.
It seems to me like there is still a problem. I tried it in
Fin27/Win10/RGP Lua v.66.
I call the plug-in with:
local success,d1,d2=finenv.ExecuteLuaScriptItem(script)
When the plug-in ended without error, but with:
return 11,12,13
The script above gave these values:
success=true
d1=13
d2=0
I think this is correct. (However, I have not found it in the
documentation.)
*
**BUT: *this only happened the very first time when I called the script
directly after starting Finale.
When I run the ExecuteLuaScriptItem a second time, it always results in:
success=true
d1="" --or at least it's an "empty nothing" when I print it
with tostring(d1). It's not nil.
d2=0
So after the first run I can't influence the return value anymore.
Seems like the return value is permanently stored somewhere in RGP Lua.
When I restart Finale, it's the same behaviour: first time correct value
13, after that "".
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20230312/0868c84a/attachment.htm>
More information about the JWLua
mailing list