Page 1 of 1

How to add a group to another group in code

Posted: Sat Jan 14, 2012 7:49 pm
by dave_probertGA6e24
Hi,

I've created a clone of a group (A) at runtime and would like to add it to another group (B) via code.

I cannot see a way of setting the owner (read-only property) or the parent or whatever of (A) to the existing (B) group.

Is there a way of doing this?

Thanks.
Dave

Re: How to add a group to another group in code

Posted: Sat Jan 14, 2012 8:25 pm
by sturgis
try "copy group "yourgroup" to group "destinationgroup"

Re: How to add a group to another group in code

Posted: Sat Jan 14, 2012 11:14 pm
by dave_probertGA6e24
Hi Sturgis,

Thanks for that - much better than cloning and trying to move it :) Simply copy directly to the group - perfect(ish!)

Now on to the next fun bit :)