Copy Command Question

Ken Ray kray at sonsothunder.com
Wed Apr 13 20:00:55 EDT 2005


On 4/13/05 5:27 AM, "Eric Chatonet" <eric.chatonet at sosmartsoftware.com>
wrote:

> In one line, I am afraid not :-)
> But in two lines:
> 
> copy grc "TemplateRect" to this card
> set the name of last grc to "G-" & the ID of last grc

You can also use "it", since the newly created object is stored in "it":

  copy grc "TemplateRect" to this card
  set the name of it to "G-" & (the ID of it)

And if you want to fudge it into one line, you can use a semicolon (watch
line wraps):

  copy grc "TemplateRect" to this card;set the name of it to "G-" & (the ID
of it)

I know, it's cheating, but it *is* one line...

:-)

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list