<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Jari,<br>
<br>
could you please add a "standard" loop to the FCLuaIterator class,
so that for example a simple loop from 1..1000 could also update the
progress bar ? Not all iterations can be broken down to the
available Finale elements, although most of them are covered by your
supported classes.<br>
I thought of the FCNumbers class being filled with values from 1 to
1000 which is then passed to the iterator. Something like:<br>
<tt><br>
</tt><tt>function callback(i)</tt><tt><br>
... -- do a lot of processinng<br>
</tt><tt> print(i.Int)</tt><tt> <br>
... </tt><tt>-- do a lot of processinng<br>
</tt><tt>end</tt><tt><br>
</tt><tt><br>
</tt><tt>--Simple loop with FCNumbers</tt><tt><br>
</tt><tt>local loop=finale.FCNumbers()</tt><tt><br>
</tt><tt>for i =1,1000,1 do</tt><tt><br>
</tt><tt> loop:AddUniqueInt(i)</tt><tt><br>
</tt><tt>end</tt><tt><br>
</tt><tt><br>
</tt><tt>local iterator=finale.FCLuaIterator()</tt><tt><br>
</tt><tt>iterator.ForEach(loop,callback)</tt><br>
<br>
While writing this, maybe it would also be a good idea to add a new
method to FCNumbers that would would create a range as above. This
would reduce the code to:<br>
<br>
local loop=finale.FCNumbers()<br>
loop:AddRange(1,1000) -- would do the same as the i-loop above<br>
local iterator=finale.FCLuaIterator()<br>
iterator.ForEach(loop,callback)<br>
<br>
Jan<br>
<br>
<span style="color: rgb(0, 0, 0); font-family: Roboto, sans-serif;
font-size: 14px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: 22px;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(249, 250, 252);"></span>
</body>
</html>