Using message box to monitor a repeat loop

Craig Newman craig at starfirelighting.com
Mon Dec 15 09:40:54 EST 2025


What Alex said is standard practice when something that appears to HAVE to work properly simply does not. Giving the engine a little breathing room with that “wait” line oftentimes makes everything better. It is nothing more than that.

If that wait gadget still does not work, it usually means that somewhere there is a problem with the handler itself.

Craig

> On Dec 14, 2025, at 11:32 AM, Alex Tweedly via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> try something like:
> Repeat
>    Put k
>    Wait 0 seconds with messages 
> ….
> 
> Sent from my iPhone
> 
>> On 14 Dec 2025, at 15:52, David Epstein via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> When running a repeat loop for a large dataset, I want to be able to monitor progress, so
>> 
>> repeat for each line k in myData
>>  put k ## into message box to see what’s happening
>>  ## do the actual work…
>> 
>> I believe this has worked in the past, but in a current project the “put k” only has effect when I am debugging, not when the script is running normally.  I have not locked screen or messages.
>> 
>> Any ideas why this doesn’t work?
>> 
>> Best wishes,
>> David Epstein
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list