remove grouped but retain objects

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
jalz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 340
Joined: Fri Sep 12, 2008 11:04 pm

remove grouped but retain objects

Post by jalz » Tue Mar 03, 2015 12:05 am

Hi Guys,

I have a number of objects including labels, fields and a datagrid which I have grouped and called it scrollbar. I now need to remove that group but want to retain all the objects that are in it.

Is there anyway of removing the new group without disturbing the contents inside of it. One way I could use is to edit the selected group copy the contents into clipboard, stop editing and delete the group and then paste the objects from clipboard, but is there another way? I'm worried I will mess up my datagrid object using the previous method.

Thanks
Jalz

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3352
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: remove grouped but retain objects

Post by bn » Tue Mar 03, 2015 12:18 am

Hi jalz,

Code: Select all

on mouseUp
   select group "myGroupToBeDeleted"
   ungroup
   select empty -- optional
end mouseUp
It works for me, you could try it on a separate stack to be sure.

Kind regards
Bernd
Last edited by bn on Tue Mar 03, 2015 12:45 am, edited 1 time in total.

jalz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 340
Joined: Fri Sep 12, 2008 11:04 pm

Re: remove grouped but retain objects

Post by jalz » Tue Mar 03, 2015 12:43 am

Thanks Bernd,

that did the trick

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”