How about something like:
put ID of group 1 into GrpID
put (the number of controls) into xMax
repeat with x = 1 to xMax
if the ID of (the owner of control x) <> GrpID then next repeat
put the name of control x & cr after tList
end repeat
answer tList
Each control's "owner" property tells you what control or object
contains it. Maybe that will get you there.
Phil
andu wrote:
>
> >Hi everyone,
> >
> >I'm working on a utility that will hopefully be useful to all of us.
> >It's a stack "dissector" that will not only extract the scripts of
> >the cards, groups, and controls of the mainStack and all substacks,
> >but will also extract the contents of custom properties and give an
> >outline view of all of the above. This is one of the projects I'd
> >like to share with the group as kind of an "open source" thing.
> >
> >Anyway, my question is this: can I get the controls of a group
> >without including the controls of the subgroups in that group?
>
> I'm afraid not in a straight forward way.
> If you group 2 buttons, create a third button and group it with the first group,
>then do "put the num of controls of group 1(= second group)" you get "4" = the 3
>buttons and the first group. I don't know how you can handle that, maybe subtracting
>the controls of the first group from the second one but it's extremely unelegant as
>you notice.
>
> > That
> >sounds rather convoluted, and the scripting is proving to be just
> >that! My script currently digs into the nested groups as far as it
> >can, then compares the list of controls of that group to the list
> >from the previous level and deletes the duplicates, then repeats that
> >process back down to the root of the tree. It's very cumbersome and
> >I'm wondering (hoping!) there's a better way. Any suggestions?
>
> >
> >Thanks,
> >
> >Craig
> >
> >/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
> >\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
> >
> >Craig Spooner
> >Instructional Multimedia Specialist
> >and WebCT Administrator
> >Office of Instructional Services
> >Colorado State University
> >(970) 491-2516
> >
> >Archives: http://www.mail-archive.com/metacard%40lists.best.com/
> >Info: http://www.xworlds.com/metacard/mailinglist.htm
> >Please send bug reports to <[EMAIL PROTECTED]>, not this list.
> >
> >
>
> Regards, Andu
>
> Archives: http://www.mail-archive.com/metacard%40lists.best.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
--
Phil Davis
--------------------
days: (503) 986-1215
eves: (503) 557-5656
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.