Re: Group/Ungroup by script

2011-02-18 Thread Peter Haworth
That's good to know and something I may need to do. Pete Haworth On Feb 18, 2011, at 6:05 AM, Richard Gaskin wrote: > You can even create a group with no objects in it. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url

Re: Group/Ungroup by script

2011-02-18 Thread Richard Gaskin
Peter Haworth wrote: > Interestingly, the group command seems to allow you to create > a group with only 1 control in it, whereas the IDE doesn't. You can even create a group with no objects in it. The IDE uses only a subset of what the engine can do. -- Richard Gaskin Fourth World LiveCode

Re: Group/Ungroup by script

2011-02-17 Thread Terry Judd
Works both ways for me. Terry... On 18/02/11 5:14 PM, "Peter Haworth" wrote: > Got it, thanks. Interestingly, the group command seems to allow you to create > a group with only 1 control in it, whereas the IDE doesn't. > > Pete Haworth > ___ use-

Re: Group/Ungroup by script

2011-02-17 Thread Peter Haworth
Got it, thanks. Interestingly, the group command seems to allow you to create a group with only 1 control in it, whereas the IDE doesn't. Pete Haworth http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Feb 17, 2011, at 8

Re: Group/Ungroup by script

2011-02-17 Thread J. Landman Gay
On 2/17/11 10:16 PM, Peter Haworth wrote: Thanks Jacqueline, I knew there would be an easier way! Does that work if the group doesn't yet exist? I know that wasn't in my original post but it is something I need to account for. I just knew there'd be a catch. :) You need an existing group to

Re: Group/Ungroup by script

2011-02-17 Thread Peter Haworth
Thanks Jacqueline, I knew there would be an easier way! Does that work if the group doesn't yet exist? I know that wasn't in my original post but it is something I need to account for. Pete Haworth On Feb 17, 2011, at 7:10 PM, J. Landman Gay wrote: > On 2/17/11 7:59 PM, Peter Haworth wrote:

Re: Group/Ungroup by script

2011-02-17 Thread Monte Goulding
On 18/02/2011, at 2:10 PM, J. Landman Gay wrote: > On 2/17/11 7: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

Re: Group/Ungroup by script

2011-02-17 Thread J. Landman Gay
On 2/17/11 7: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

Re: Group/Ungroup by script

2011-02-17 Thread Peter Haworth
I'm not doing it just once, sorry if it came across that way. I need to do it as part of a special tools palette I'm working on. Pete Haworth http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Feb 17, 2011, at 6:39 PM, J

Re: Group/Ungroup by script

2011-02-17 Thread Joe Lewis Wilkins
Sorry, Peter, I didn't see the repeat in your code. Joe Lewis Wilkins Architect & Director of Product Development for GSI 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

Re: Group/Ungroup by script

2011-02-17 Thread Joe Lewis Wilkins
Hi Peter, Looks like you're doing this from the message box? How come you're not just doing it manually, since you're only doing it one time? Joe Lewis Wilkins Architect & Director of Product Development for GSI On Feb 17, 2011, at 5:59 PM, Peter Haworth wrote: > I have a need to add a spec

Group/Ungroup by script

2011-02-17 Thread Peter Haworth
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