[JW Lua] FCCurrentStaffSpec:LoadForCell: 2nd parameter not optional

Jan Angermüller jan at angermueller.com
Mon Nov 23 14:50:48 CET 2015


Jari,

the 2nd parameter in FCCurrentStaffSpec:LoadForCell seems to be 
mandatory, not optional as listed in the documentation:

local cell=finale.FCCell(1,1)
local currstaffspec=finale.FCCurrentStaffSpec()
currstaffspec:LoadForCell(cell)

The last line throws an error:
bad argument #2 to 'LoadForCell' (number expected, got no value)
(tested with version JW Lua 0.42, I haven't upgraded to 0.43 yet)

It works fine with:
currstaffspec:LoadForCell(cell,0)

Jan





More information about the JWLua mailing list