[JW Lua] JWLua Digest, Vol 34, Issue 18

Robert Wildling robertwildling at gmail.com
Sat May 14 14:59:28 CEST 2016


Found it: when calling a single staff only, finale.FCStaff() has to be
used. I used finale.FCStaves()....

Sorry for bothering...

*Robert M Wildling*

*composer | pianist | music engraver | progammer*
Göllnergasse 19/30 || A-1030 Vienna
ph: +43 676 6089613
@: robertwildling at gmail.com

2016-05-14 14:48 GMT+02:00 Robert Wildling <robertwildling at gmail.com>:

>
> ​Thanks, Jan, for your response!
> ​Do you have any idea why the
> staff:Load(id)​
> ​is not working?
>
> Along the way, I read that the id has to be of type "CMPER", but I have no
> clue how to cast id (which is of type number) to a CMPER... and so far i
> didn't find an example...
>
> It is also weird, because just doing the 3-line sample from the class
> browser with handing over an existing id like this:
>
> -- Process single item:
> local staff = finale.FCStaff()
> if staff:Load(29) then
>    print(staff:CreateTrimmedFullNameString().LuaString)
> end
>
> works perfectly fine; but not so within my if - else statement...
>
> All the best,
> Robert
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20160514/1555e967/attachment.html>


More information about the JWLua mailing list