<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Jari et al,<br>
    <br>
    I noticed that when I have a score that only has chord symbols on
    one staff (and no chords on the other staves) the "chord flag" is
    also set to true when I have switched to a part that doesn't have
    chords. <br>
    Is that correct?<br>
    <br>
    I would have expected that when I switch to a certain part and load
    the measure object that it only has those flags set that are valid
    for that part.<br>
    Is this a Finale PDK bug, a JW Lua bug or intended behaviour ?<br>
    <br>
    Test code: (run it on a score with parts, that doesn't have chords
    on each part - still it will print the same ChordFlag counter for
    each part)<br>
    <br>
    local parts=finale.FCParts()<br>
    parts:LoadAll()<br>
    for p in each(parts) do<br>
        p:SwitchTo()<br>
            local measures=finale.FCMeasures()<br>
            measures:LoadAll()<br>
            local chordflagcounter=0<br>
            for m in each(measures) do<br>
                if m.ChordFlag then<br>
                    chordflagcounter=chordflagcounter+1<br>
                end<br>
            end<br>
            print(p.ID,chordflagcounter)<br>
        p:SwitchBack()<br>
    end<br>
    <br>
    Running [Unnamed Script] ======><br>
    0 13   (score with multiple staves of which one has 13 measures with
    chords)<br>
    1 13    (part of a staff that doesn't have chords, but for whatever
    reason has the ChordFlag set)<br>
    <======= [Unnamed Script] succeeded (Processing time: 0.000 s).<br>
    <br>
    Best,<br>
    Jan<br>
  </body>
</html>