Escaping from Repeat loops
Mark Smith
mark at maseurope.net
Thu Sep 13 13:53:24 EDT 2007
After the 'exit to top', there should be no handlers running...have
you tried 'exit repeat' instead?
Best,
Mark
On 13 Sep 2007, at 18:30, Derek Bump wrote:
> I'm coming into this thread a little late, but I have a question. I
> have a repeat loop that looks something like this:
>
> repeat xNumberOfTimes
> global doCancelVariable
>
> -- My Code Here
>
> wait 1 tick with messages
> if doCancelVariable = "true" then
> exit to top
> end if
> end repeat
>
> Within a "Cancel" button is a script that, when pressed, put's "true"
> into the global variable "doCancelVariable".
>
> Everything works as it should, except that after pressing the button,
> the currently running script does not see that the global variable has
> changed. Is there some way to see the change from the currently
> running
> script?
>
>
> Derek Bump
> Dreamscape Software
> http://www.dreamscapesoftware.com
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list