Display Status of a Repeat Loop
Posted: Wed Dec 15, 2010 6:45 pm
Hello,
Just got on board with LiveCode recently, previous a MetaCard guy. Here's my issue. In a repeat loop, I used to put a running count into a field so I could see the progress of the script. This does not work in LiveCode so I'm looking for a workaround.
Example:
repeat with i = 1 to 1000
-- do some action here
put i into field "status"
end repeat
When run, the field "status" would flash the numbers going by and I could see how far the script was. Now it does not. Instead of 1000, picture the number of lines in a 15 MB text file - like 70 thousand lines or so. I'd like to be able to see where I am in the process while the script runs. Best workaround/idea?
Just got on board with LiveCode recently, previous a MetaCard guy. Here's my issue. In a repeat loop, I used to put a running count into a field so I could see the progress of the script. This does not work in LiveCode so I'm looking for a workaround.
Example:
repeat with i = 1 to 1000
-- do some action here
put i into field "status"
end repeat
When run, the field "status" would flash the numbers going by and I could see how far the script was. Now it does not. Instead of 1000, picture the number of lines in a 15 MB text file - like 70 thousand lines or so. I'd like to be able to see where I am in the process while the script runs. Best workaround/idea?