Getting All the non grouped controls in a card

Ken Ray kray at sonsothunder.com
Tue Aug 23 11:58:06 EDT 2005


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