Finally found one.

Mark Wieder mwieder at ahsoftware.net
Tue Oct 2 21:29:53 EDT 2012


Jacque-

Tuesday, October 2, 2012, 1:50:27 PM, you wrote:

> Ah, that's it. I tried handling pending messages differently but in the
> wrong place:

> on showRandoms tSecs
>    put random(99)
>    wait 0 with messages
>    if tSecs = 0 then
>      exit to top
>    end if
>    if tSecs > the seconds and "showRandoms" is not in the pendingmessages
>    then send "showRandoms" && tSecs to me in 5
> end showRandoms

You actually don't need the pendingmessages test if you've got the
wait 0 with messages line in there. Unless you hit the start button
multiple times there will only ever be one "showRandoms" message
pending because it's queued up at the end of the previous one.

-- 
-Mark Wieder
 mwieder at ahsoftware.net





More information about the use-livecode mailing list