repeat with messages
jhj at jhj.com
Fri May 16 21:08:16 EDT 2014
Please see bottom post and forward at the end...
On May 16, 2014, at 5:08 PM, Richard Gaskin <ambassador at fourthworld.com> wrote:
> Jerry Jensen wrote:
> > On May 16, 2014, at 4:32 PM, Richard Gaskin wrote:
> >> Dar Scott wrote:
> >> > I don’t see this in the ‘repeat’ entry in the dictionary.
> >> "with messages" is a modifier for the "wait" command - you'll find
> >> it documented there.
> > I use the wait with messages all the time in a project that takes
> > data from serial ports that can send to me without warning. Its very
> > useful.
> > So how could I presume that it would work the same way tacked onto a
> > repeat statement?
> > Would you like me to file a documentation bug report, or am I missing
> > something?
> I don't understand. How can "with messages" be used as part of a "repeat" statement?
Way back at the beginning of this thread, here's the first interchange:
Begin forwarded message:
> From: Mark Schonewille <m.schonewille at economy-x-talk.com>
> Subject: Re: repeat with messages
> Date: May 16, 2014 3:04:36 PM PDT
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Reply-To: How to use LiveCode <use-livecode at lists.runrev.com>
> 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
> 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