Only reason I can think to put a wait command in a running script is to give a 
change for an on idle handler to be triggered. If you DO have an idle handler 
running somewhere and IT has a problem that causes the engine to exit to top, 
that might be your bugaboo.

Bob


On Mar 2, 2014, at 5:47 PM, Peter Haworth <[email protected]> wrote:

> I just spent a couple of hours debugging some code and narrowed it down to
> a "wait 0 with messages" command.
> 
> WIth that command in my script, nothing after it seems to get executed.
> When I take that command out, all works fine.
> 
> I'm obviously misunderstanding how the wait command works.  I assumed it
> would wait the specified amount of time, then continue executing commands
> following it in the script.
> 
> I have to admit, I'm not sure why the wait command is in the script in the
> first place but I'd grateful for any clarification of how "wait" works.
> 
> Thanks,
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> _______________________________________________
> 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


_______________________________________________
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

Reply via email to