Finally found one.

J. Landman Gay jacque at
Tue Oct 2 22:12:32 EDT 2012

On 10/2/12 8:29 PM, Mark Wieder wrote:
> 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.

Yeah. I pasted the wrong one of many attempts that were stacked up in 
the script editor. Some of them had lots of commented lines and I just 
uncommented everything and pasted. That's my story and I'm sticking with it.

Jacqueline Landman Gay         |     jacque at
HyperActive Software           |

More information about the Use-livecode mailing list