<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Sorry, I forget to remove a comment in the test code from the last
email. <br>
So the correct test code is:<br>
<br>
local region=finale.FCMusicRegion()<br>
region:SetFullDocument()<br>
<br>
local noteentrylayer = finale.FCNoteEntryLayer(1,1,1,1)<br>
noteentrylayer:Load()<br>
noteentrylayer.LayerIndex=0<br>
<br>
local noteentrylayer2 = finale.FCNoteEntryLayer(0,1,1,1)<br>
noteentrylayer2:Load()<br>
noteentrylayer2.LayerIndex=1<br>
noteentrylayer:Save()<br>
noteentrylayer2:Save()<br>
<br>
for e in eachentrysaved(region) do --should do nothing, but actually
the rest disappears after this call<br>
end
</body>
</html>