"wait until" or "repeat until" (with a wait) for modal dialog wait?

Bob Sneidar bobsneidar at iotecdigital.com
Sat Jun 13 18:53:40 EDT 2015


If it’s modal, you don’t have to do anything. Opening a stack as modal causes the calling script to halt execution. Once the modal stack closes the script continues to run. 

Bob S


> On Jun 13, 2015, at 10:03 , Dr. Hawkins <dochawk at gmail.com> wrote:
> 
> I am writing my own modal replacement for answer for a variety of reasons
> 
> Once I have a modal stack/card set up, there isn't anything to do but wait
> for it.
> 
> I could use either
> 
> repeat until the retVal of me is not empty
>  wait 10 milliseconds with messages
> next repeat
> 
> 
> or I could use
> 
> wait until the retVal of me is not empty
> 
> 
> But is the wait until going to spike the cpu?   the dictionary states that
> to evaluates "continuously"--but how continuously is continuously?
> 
> And will this be system dependent?
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list