Getting All the non grouped controls in a card

Eric Chatonet eric.chatonet at sosmartsoftware.com
Tue Aug 23 09:21:27 EDT 2005


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

Take care of carriage returns ;-)
Hope this helps.

Le 23 août 05 à 15:16, David Burgun a écrit :

> Hi All,
>
> How can I get all the controls of a Card that are not in a Group?
>
> repeat with myIndex = 1 to number of controls in card 1 of stack  
> "StackPath/StackName.rev"
>
> seems to return all controls whether they are in a Group or not.
>
> Any pointers greatly appreciated.
>
> All the Best
> Dave


Best Regards from Paris,

Eric Chatonet.
----------------------------------------------------------------
So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website
----------------------------------------------------------------
Web site        http://www.sosmartsoftware.com/
Email        eric.chatonet at sosmartsoftware.com/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------




More information about the use-livecode mailing list