Copying groups

Steve Messimer steve at messimercomputing.com
Thu Dec 12 09:12:01 EST 2002


on 12/11/02 6:15 PM, use-revolution-request at lists.runrev.com at
use-revolution-request at lists.runrev.com wrote:

> The problem: when the template group is copied from the last card to
> the first, the checkboxes and radio button settings are LOST - the
> group appears with all items deselected. Checking the stored value of
> these items' properties by using the messagebox, I see that they are
> either empty, or set to false - even though the group they were
> supposed to be copying had these properties as  'true'. More to the
> point: if I manually (not via script) go to the last card, select the
> group, copy it, go to the first card, and paste it, the items in the
> group KEEP their hilites!

Igor,

I have run into problems like this myself.  While your application of grps
is probably a bit different then mine what follows may be of some assistance
to you.

I have found that when I copy a grp all of the group's component objects get
completely new id numbers ( makes sense when you stop to think about it). If
you aren't naming the grp's components there can be a problem. This arises
most often in the situation where you are using object ids to reference the
grps component objects in scripts. In your template the scripts are all
refeerring to object ids. When you copy the template Revolution dutifully
copies all ther grp's components AND gives each one a unique id.  Your
script is now useless.  Naming all the component objects in your template
grp prevents this.

Hope this helps.
Regards

Steve

Stephen R. Messimer
Messimer Computing, Inc
208 1st Ave South
Escanaba, MI 49829
www.messimercomputing.com

PS Rod -- Please make mine 21 year old Glen Goyne  :-)





More information about the Use-livecode mailing list