Make a stack usable while repeating

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Paul D
Posts: 116
Joined: Mon May 21, 2007 6:58 pm

Make a stack usable while repeating

Post by Paul D » Wed Sep 30, 2009 3:17 pm

Whenever I use a repeat, when its executing, the stack is unusable. How can I make it usable while the script is still executing? I thought I remembered reading to use

Code: Select all

with messages
with the repeat but that doesn't seem to work so maybe I made that up.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4174
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Wed Sep 30, 2009 3:40 pm

Paul,

put

Code: Select all

wait 0 milliseconds
inside the repeat loop
that should do it,
you could also do

Code: Select all

wait 0 milliseconds with messages
regards
Bernd

Paul D
Posts: 116
Joined: Mon May 21, 2007 6:58 pm

Post by Paul D » Thu Oct 01, 2009 1:31 pm

works, thank you sir.

Post Reply