Page 2 of 2

Re: Simple Question: How to delete objects in a group?

Posted: Mon Nov 02, 2015 3:37 am
by Cheong
Thanks for the quick replies people...

The solution I used for deleting the objects in a group is by using the code provided by MaxV.
The result is clean and simple.
Here is how I used his code:

Code: Select all

  put the number of controls of group "CCTVList" into temp
   repeat with i=1 to temp
      put the name of control i of group "CCTVList" after listContr
      put CR after listContr
   end repeat
   repeat for each line tLine in listContr
      if the last word of tLine is not (quote & "grElement" & quote) then 
      do "delete " & tLine & "of group CCTVList"
      end if
   end repeat

Re: Simple Question: How to delete objects in a group?

Posted: Wed Nov 04, 2015 6:01 pm
by MaxV
Image
and what I do is livecoding ... :lol: :lol: :lol:
(just for fun)

Re: Simple Question: How to delete objects in a group?

Posted: Wed Nov 04, 2015 6:09 pm
by Klaus
MaxV wrote:Image
and what I do is livecoding ... :lol: :lol: :lol:
(just for fun)
So are Livecoderine? :D

Re: Simple Question: How to delete objects in a group?

Posted: Wed Nov 04, 2015 6:29 pm
by MaxV
Good idea, just give some time to edit the image... :lol:

Re: Simple Question: How to delete objects in a group?

Posted: Thu Nov 05, 2015 3:23 am
by Cheong
:D :D :D