Page 1 of 1

Cloning objects

Posted: Mon Feb 17, 2014 11:06 am
by garyth123
Hi,

I have attempted to create a group on a card which I mean to use as a template. However I could not get the clone command to work by script. Instead I had to use

Code: Select all

   
...
repeat with i = 1 to 2
      
      copy grp "bookingtime" of cd "template card" to this card//this is instead of "clone"
      
      //position the group
      set the top of it to (86 + x*120)
      add 1 to x
      set the left of it to 40
...
I am probably missing some better way of achieving this.

Can anyone advise?

Re: Cloning objects

Posted: Mon Feb 17, 2014 11:14 am
by Simon
Hi,
How about setting the "Behave like background" on the group?

Simon

Re: Cloning objects

Posted: Mon Feb 17, 2014 11:20 am
by garyth123
Simon wrote:Hi,
How about setting the "Behave like background" on the group?

Simon
Well I have to create the cloned groups kind of "on demand", placing them, and updating the fields in them with information, as they scroll.

Re: Cloning objects

Posted: Mon Feb 17, 2014 11:21 am
by jmburnod
Hi,
If i understand what you mean "place group" is an easy way to do that
Best regards
Jean-Marc

Re: Cloning objects

Posted: Mon Feb 17, 2014 11:30 am
by Simon
If i understand what you mean "place group"
Sweet... was even in the OP post
placing them,
Simon

Re: Cloning objects

Posted: Mon Feb 17, 2014 12:10 pm
by jmburnod
Hi Simon,
I understood "placing them" signified set the loc of new group.
Jean-Marc