"repeat for each" in a group

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
LittleGreyMan
Posts: 49
Joined: Sat Jun 16, 2012 7:57 pm

"repeat for each" in a group

Post by LittleGreyMan » Sat Sep 22, 2012 10:31 am

Hello,

According to the dictionary, "repeat for each" seems to only apply to containers.

But I was wondering if it can be used for buttons in a group, and which is the syntax in this case. I tried some variants, with no luck.

TIA
Best regards,

Didier

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: "repeat for each" in a group

Post by Klaus » Sat Sep 22, 2012 11:33 am

Hi Didier,

the dictionary is correct, you can't, use: repeat with i = 1 to the num of btns of grp XYZ

I don't think that you can have that much buttons in a group that you have a real advantage in speed if you could :D


Best

Klaus

LittleGreyMan
Posts: 49
Joined: Sat Jun 16, 2012 7:57 pm

Re: "repeat for each" in a group

Post by LittleGreyMan » Sat Sep 22, 2012 11:44 am

Hi Klaus,

Thanks for the bad news. Hopefully, I'm not considering killing the messenger for a simple rhetoric issue :D

I was not seeking speed, just considering this syntax handsome.

In the meantime, the script has been written as you suggested.
Best regards,

Didier

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: "repeat for each" in a group

Post by Klaus » Sat Sep 22, 2012 4:18 pm

Hi Didier,
LittleGreyMan wrote:Hi Klaus,

Thanks for the bad news. Hopefully, I'm not considering killing the messenger for a simple rhetoric issue :D
Oh, thank you, too kind! :D
LittleGreyMan wrote:I was not seeking speed, just considering this syntax handsome.
I agree, that would be very handy for all other things, too!
LittleGreyMan wrote:In the meantime, the script has been written as you suggested.
That was the plan 8)

Have a nice weekend!


Best

Klaus

Post Reply