Card cloning

Mark Talluto revlists at canelasoftware.com
Mon May 3 16:11:15 EDT 2004


On May 3, 2004, at 12:04 PM, David Squance wrote:

> I'm having trouble with cloning a card from within a script again.  It
> works fine from the message box, but nothing happens when the script 
> hits
> "clone this card".  When I had this problem awhile ago, creating a new 
> card
> and pasting the controls on to it solved the problem, but not this 
> time.  I
> even created a new substack, since there was only the one card, but no
> luck.  This whole project was an import from HC, originally, and I had
> assumed that the problem started there.  Anyone know if RR2.2 is any 
> better
> on this?  I've stuck with 2.1.2 for the time being. (OS 10.3.3)
> Dave
>

Are there any groups on the card you are trying to clone?

Try the following in your script:

lock messages
clone card "card-to-be-cloned"
unlock messages

There is a known bug that should be fixed by 2.3.

-- 
Best regards,
Mark Talluto
http://www.canelasoftware.com


More information about the use-livecode mailing list