repeat with messages

Mark Schonewille m.schonewille at economy-x-talk.com
Sat May 17 00:04:36 CEST 2014


Hi Jerry,

The "with messages" clause makes a repeat loop non-blocking. This allows 
you to run multiple handlers with repeat statements simultaneously. I 
add the wait with messages command at the end of the loop to give the 
engine more time to update the GUI. Particularly in older versions of 
LiveCode, it makes a huge difference.

E.g. try setting the thumbPos of a progress bar using a repeat loop in 
LC 5. Without "wait", you may not even see that the progress bar updates 
until you reach the end of the loop.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner" 
http://qery.us/3fi

LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 5/16/2014 23:43, Jerry Jensen wrote:
> In a nice example from Mark S., I see the line below. I've never seen the "with messages" part on the end of a repeat statement. I tried it, and it compiles and runs without complaint. What does it do, allow messages at the end of each repeat? I don't see it in the dictionary. I'm running LC Community 6.6.1 .
> .Jerry
>
> On May 16, 2014, at 5:46 AM, Mark Schonewille <m.schonewille at economy-x-talk.com> wrote:
>
>>   repeat with x = 100 down to 0 with messages
>




More information about the use-livecode mailing list