Group members
Richmond Mathewson
richmondmathewson at gmail.com
Tue Jul 28 15:18:45 EDT 2009
Richmond Mathewson wrote:
> Devin Asay wrote:
>>
>> On Jul 28, 2009, at 11:39 AM, James Hurley wrote:
>>
>>> How do I get a list of all the controls within a group?
>>
>> The only way I can think of is to loop through them (untested):
>>
>> repeat with x = 1 to the number of controls in group "myGrp"
>> put the name of control x of group "myGrp" & cr after tControlList
>> end repeat
>>
> tried this:
>
> on mouseUp
> repeat with x = 1 to the number of controls in group "GROOP"
> put the name of control x of group "myGrp" into line x of fld "fMEMS"
> end repeat
> end mouseUp
>
> and got a serious objection to:
>
> of control x of group "myGrp" into line x of fld "fMEMS"
>
Because I was half-asleep and forgot to change the name of the group:
on mouseUp
repeat with x = 1 to the number of controls in group "GROOP"
put the name of control x of group "GROOP" into line x of fld "fMEMS"
end repeat
end mouseUp
works very well indeed; Thanks, Devin.
More information about the use-livecode
mailing list