repeat repeat

Mark Swindell mdswindell at cruzio.com
Wed Mar 1 20:07:21 EST 2006


on mouseUp
   put fld "seatNo" into tseatNo
   repeat for each line y in tSeatNo
     repeat with x = 1 to the number of buttons
       if y = the label of button x then
         set the backgroundcolor of  button x to y
       end if
     end repeat
   end repeat
end mouseUp


Something like the above might work.  Hope this helps.
Mark
On Mar 1, 2006, at 4:43 PM, liamlambert wrote:

> My fld "seatNo" has more than one line or item
> I want to repeat the code below for each line or item
>
>
> on mouseUp
>   put fld "seatNo" into tseatNo
>  repeat with x = 1 to the number of buttons
>  if tseatNo = the label of button x then
>       set the backgroundcolor of  button x to red
>   end if
>   end repeat
>     end mouseUp
>
> Liam Lambert
> liamlambert at mac.com
> IRELAND
>
>
> _______________________________________________
> 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