Getting All the non grouped controls in a card

Eric Chatonet eric.chatonet at sosmartsoftware.com
Tue Aug 23 12:04:53 EDT 2005


Hi Ken and Dave,

I just come back from holydays :-)
Absent-mindedness...
Bad English...
My apologies to Dave!
My thanks to Ken ;-)

Le 23 août 05 à 17:58, Ken Ray a écrit :

> On 8/23/05 8:21 AM, "Eric Chatonet"  
> <eric.chatonet at sosmartsoftware.com>
> wrote:
>
>
>> Hi Dave,
>>
>> repeat with myIndex = 1 to number of controls in card 1 of stack
>> "StackPath/StackName.rev"
>>    if word 1 of the owner of control myIndex of card 1 of stack
>> "StackPath/StackName.rev" = "group" then
>>      put the long ID of control myIndex of card 1 of stack  
>> "StackPath/
>> StackName.rev & cr after tGroupedControlsList
>>    end if
>> end repeat
>>
>
> Actually, Eric, he was asking for those controls *not* in a group,  
> but your
> code works with one minor adjustment (and a name change):
>
> repeat with myIndex = 1 to number of controls in card 1 of stack
> "StackPath/StackName.rev"
>    if word 1 of the owner of control myIndex of card 1 of stack
> "StackPath/StackName.rev" <> "group" then
>      put the long ID of control myIndex of card 1 of stack "StackPath/
> StackName.rev & cr after tUnGroupedControlsList
>    end if
> end repeat
>
> :-)
>
> Ken Ray
> Sons of Thunder Software
> Web site: http://www.sonsothunder.com/
> Email: kray at sonsothunder.com



More information about the use-livecode mailing list