[JW Lua] Bug in FCDotMods:LoadAll() sample code 2

Jan Angermüller jan at angermueller.com
Wed Jun 29 18:12:42 CEST 2016


Jari,

there is a bug in the sample code 2 of FCDotMods:LoadAll().
noteentry is missing in finale.FCDotMods().
Also the third line of code is not necessary.

Best,
Jan


for noteentry in eachentry(finenv.Region()) do
    local dotmods = finale.FCDotMods()
    dotmods:LoadAll()
    local myNumberResult = dotmods:LoadAll()
    for dm in each(dotmods) do
        -- Do something with 'dm' (of the 'FCDotMod' class) here
    end
end

Second line should be:
    local dotmods = finale.FCDotMods(*noteentry*)
Third line (   dotmods:LoadAll()     )     is not necessary.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20160629/1fa6cc66/attachment.htm>


More information about the JWLua mailing list