repeat with messages
m.schonewille at economy-x-talk.com
Fri May 16 18:04:36 EDT 2014
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.
Economy-x-Talk Consulting and Software Engineering
Installer Maker for LiveCode:
Buy my new book "Programming LiveCode for the Real Beginner"
LiveCode on Facebook:
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 .
> 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