<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Jari,<br>
<br>
while the<b> progress bar </b>has worked fine for me in all
iterators I have tested so far, I wasn't successful in getting it to
work with the new FCLuaIterator:ForEachInteger. The progress bar
doesn't update.<br>
Anything I have forgotten ? Or is it a bug ?<br>
<br>
Code snippet:<br>
<br>
function DoCallback(i)<br>
print("Callback"..i)<br>
end<br>
local it=finale.FCLuaIterator()<br>
it.UseProgressBar=true<br>
it.AbortableProgressBar=false<br>
it.ProgressUpdateFrequency=1 <br>
it:ForEachInteger(100000,1,DoCallback) --backwards loop<br>
<br>
More ideas on the ForEachInteger:<br>
in order to reduce the number of the global variables used, would it
be technically possible to create an iterator with <b>any number of
additional parameters</b> that would be passed to the callback
function ?<br>
I.E. something like this (with two additional parameters):<br>
function Callback(i,a,b)<br>
...<br>
end<br>
<br>
local a=1.493875<br>
local b={........}<br>
it:ForEachInteger(1,100,Callback,a,b)<br>
<br>
All the best,<br>
Jan<br>
</body>
</html>