Grouped Controls(Objects)

Terence Heaford t.heaford at btinternet.com
Sat Mar 8 08:37:47 EST 2014


Thanks Mark,

The group is actually a group that contains the methods for drawing bar, line and pie charts
and has 750 lines of script.

The objects I create in the group are lines, fields, rectangles etc. that are created to make up the charts.

I currently have a property that contains a list of the objects that I work through when deleting the charts.

I was hoping that a LC group had a property that returned a list of objects contained in the group.

I will try your script though.

Thanks

Terry

On 8 Mar 2014, at 12:23, Mark Schonewille <m.schonewille at economy-x-talk.com> wrote:

> Why don't you simply delete the group and create a new one?
> 
> If you want to have a list of controls of a group, card or stack, you can use a repeat loop in a getProp handler:
> 
> getProp allControls
>  repeat with x = 1 to the number of controls of the target
>    put the long id of control x of the target & cr after myList
>  end repeat
>  return char 1 to -2 of myList
> end allControls




More information about the use-livecode mailing list