Please see bottom post and forward at the end... On May 16, 2014, at 5:08 PM, Richard Gaskin <[email protected]> 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 <[email protected]> > Subject: Re: repeat with messages > Date: May 16, 2014 3:04:36 PM PDT > To: How to use LiveCode <[email protected]> > Reply-To: How to use LiveCode <[email protected]> > > 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 . >> .Jerry >> >> On May 16, 2014, at 5:46 AM, Mark Schonewille >> <[email protected]> wrote: >> >>> repeat with x = 100 down to 0 with messages >> _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
