We have all been doing what you suggest for years, which is precisely the point. There are several reasons why having "repeat for each <control>" would be extremely welcome.
1) Precedents for this structure already exist in the language, so it's not a departure: repeat for each item x in "a,b,c". 2) The "repeat for each" structure is more efficient than looping through controls, and developers would gain the benefits of fast processing. 3) The lives of developers would be easier. How many times have I started typing "repeat for each button" and then stopped myself, having remembered "Oh yeah, we can't do that." Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 3/15/14 8:59 AM, "Richmond" <richmondmathew...@gmail.com> wrote: >>>That'd be nice. And as long as we're dreaming, how about: >>> >>> repeat for each card c in this stack >>> repeat for each button b of this card >>> >>I had to do that for myself way back in hypercard . . . it was absolutely >>necessary for what I was doing, and I've never understood why it wasn't >>part of the language. >> >> > >Why not just have a script something like this: > >put 1 into KARD >repeat until exists(card KARD) = false >-- do whatever you want on card KARD >put (KARD + 1) into KARD >end repeat _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode