Card cloning

David Squance squance at elkvalley.net
Mon May 3 17:18:54 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.

Thanks for the suggestion, Mark, but it didn't work.  There used to be a
group, but that disappeared in the process of creating a new stack and
pasting the controls from the old one while trying to solve the problem.
Dave




More information about the use-livecode mailing list