repeat with messages
dsc at swcp.com
Fri May 16 19:02:02 EDT 2014
I don’t know what you mean by “multiple handlers … simultaneously”. Wouldn’t one entire loop be inside a wait of the other?
It seems like it would be easier to use send loops at the right level of processing.
On May 16, 2014, at 4:04 PM, Mark Schonewille <m.schonewille at economy-x-talk.com> wrote:
> 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:
> Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi
> 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
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode