[JW Lua] JWLua Digest, Vol 34, Issue 18
Robert Wildling
robertwildling at gmail.com
Sat May 14 14:48:17 CEST 2016
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/d4f8fd62/attachment.htm>
More information about the JWLua
mailing list