Making data plots

Mark Schonewille m.schonewille at economy-x-talk.com
Sun Sep 7 18:25:36 EDT 2014


Hi Bill,

The dictionary entry about the create command contains the in group 
clause. Example:

create button "New Button" in group "Old Group"
put it into myLongID

When you delete the group, all its objects are also deleted.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner" 
http://qery.us/3fi

LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 9/7/2014 22:49, William Prothero wrote:
> Folks:
> I’ve been working on an app that plots various kinds of data. For some of the data, where I need a line plot, I create lines, boxes, labels, etc, and after they are displayed, I take a snapshot of the graphic and then delete the objects that I used to create the plot. So far, as a beginning live coder, I’ve just stored the names of the graphic elements of the plot in an array, then deleted them using the array entries. But, it seems, as the plots are getting more complex, that it might be easier or more efficient to put the objects for a single plot into a group, then I can delete the entire group in one operation.
>
> The dictionary has some entries on creating groups, but I can’t find anything about adding a single object to a group. I want to do this so that each time an element of the plot is created, it is added to the group. That way, I don’t have to keep track of the objects myself. Is there a tutorial where I can find this information?
>
> Also, I am assuming that if I delete a group, all of the objects in it are also deleted.
>
> Best,
> Bill
>
> William A. Prothero, Ph.D.
> University of California, Santa Barbara Dept. of Earth Sciences (Emeritus)
> Santa Barbara, CA. 93105
> http://es.earthednet.org/
>




More information about the use-livecode mailing list