Group/Ungroup by script
Joe Lewis Wilkins
pepetoo at cox.net
Thu Feb 17 21:41:16 EST 2011
Sorry, Peter, I didn't see the repeat in your code.
Joe Lewis Wilkins
Architect & Director of Product Development for GSI
<www.glsysinc.com>
760-738-1721
On Feb 17, 2011, at 5:59 PM, Peter Haworth wrote:
> I have a need to add a specific control to an existing group. The following works but I'm curious if there's a better/easier way?
>
> select group "Test"
> put "group " into mycommand
> repeat for each line myId in the selectedObjects
> put myID && "AND " after mycommand
> end repeat
> put the long ID of button "Button" after myCommand
> do myCommand
>
>
> Pete Haworth
>
>
>
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list