Make a stack usable while repeating

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

Moderators: Klaus, FourthWorld, heatherlaine, 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 »

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: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn »

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 »

works, thank you sir.
Post Reply