Selecting an object

Peter Haworth pete at
Sun Mar 13 20:45:00 EDT 2011

I know that was suggested and I can't remember why it didn't work for me - I think it may have been because the group may not exist.  Or maybe it's because I'm copying the control into the group, not creating it?

Pete Haworth

On Mar 13, 2011, at 5:32 PM, J. Landman Gay wrote:

> On 3/13/11 7:12 PM, Peter Haworth wrote:
>> I need to add a control into the group.
>> After some help from people on the list a couple of weeks ago, I've
>> been doing this by selecting the group, ungrouping it, making a group
>> command from the selectedObjects property plus the id of the new
>> control, then "do" the group command.
> That's the long way around. Try this, assuming you want a button:
> create btn "new button" in grp "mygroup" of cd "thatCard"
> If you're on the same card, just:
> create btn "new button" in grp "mygroup"
> You can substitute any control for "button". No need to ungroup first, just plunk it in there. I vaguely remember a discussion about this but I can't remember why you weren't able to do it this way for some reason.
> -- 
> Jacqueline Landman Gay         |     jacque at
> HyperActive Software           |
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list