Flashing numbers added to Number Picker stack.

Douglas Gilliland douggilliland at gmail.com
Tue Aug 2 21:30:06 EDT 2005


Thanks for the script but I can't get it to work. I get the error:

Type	Handler: error in command
Object	Button
Line	on MakeList DerNumber
Hint	on

I'm too new at this to figure it out. Any ideas?
Thanks,
Doug Gilliland
Sarasota, FL


On 7/31/05, Cubist at aol.com <Cubist at aol.com> wrote:
> sez douggilliland at gmail.com:
> >One more question - if it's not asking too much.
> >Sometimes I want a number, once it is selected, to be taken out of
> >circulation. Is there a short script to add that will do this? I have
> >searched all the resources but cannot find anything that explains how
> >to do this.
>    Try something like this:
> 
> local WhatzLeft
> 
> on MakeList DerNumber
>   -- call this function when you want to generate a pool of numbers
>   --
>   -- it assumes DerNumber is a positive integer, so watch what you feed it
> 
>   put "" into Rezult
>   repeat with K1 = 1 to DerNumber
>     put K1 into item K1 of Rezult
>   end repeat
>   put Rezult into WhatzLeft
> end MakeList
> 
> function PickOne
>   put the number of items in WhatzLeft into PoolSize
>   if PoolSize = 0 then
>     return "Hey! Doofus! You ain't got nuttin' left!"
>   else
>     put the random of PoolSize into Fred
>     put item Fred of WhatzLeft into Rezult
>     delete item Fred of WhatzLeft
>     return Rezult
>   end if
> end PickOne
> 
>    Hope this helps...
> _______________________________________________
> 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