How to copy a Card [SOLVED]

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
morrell
Posts: 84
Joined: Sat Dec 13, 2014 1:12 am

How to copy a Card [SOLVED]

Post by morrell » Tue Jan 06, 2015 10:35 am

Obtained from Experienced Developers.
open the properties inspector, choose inspect-> the card you want to copy. Then the Edit Menu lets you "Copy Card". Which you can paste later on.
Using the above I'm failing to copy a Card using LC 7.0.1 (rc 4) and I have:-
Created new card (have also tried after the below)
Open card to be copied
On main controls choose Object , choose Card Inspector
On 'Selection menu' icon - choose Inspect -then Card - then Card to copy
Open newly created card
All Paste attributes are greyed out

Where am I going wrong?

Regards,
Last edited by morrell on Tue Jan 06, 2015 4:41 pm, edited 1 time in total.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4174
Joined: Sun Jan 07, 2007 9:12 pm

Re: How to copy a Card

Post by bn » Tue Jan 06, 2015 10:47 am

Hi,

Try this: right-click on a card and choose "Card Properties Inspector". The Properties Inspector will change to the properties of that card.
Now look at the "Edit" menu. There is now "Copy Card". Do that. Go to a different or new or same stack and in "Edit" menu there is "Paste Objects" active if card is successfully copied.

Do paste the card. The card should now appear.

Just tested in LC 7.0.1 golden master (the stable version, not a RC version)

Kind regards
Bernd

morrell
Posts: 84
Joined: Sat Dec 13, 2014 1:12 am

Re: How to copy a Card

Post by morrell » Tue Jan 06, 2015 2:26 pm

Thank you bn.

Using Community 7.0.1 and still not working for me.

Right clicked on the card I want to copy
chose "Card Property Inspector"
On "Edit" menu chose "Copy Card"
Opened the empty new card I had created
On "Edit" menu chose "Paste Objects"

But no paste occurred.

Regards,

Ruth

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4174
Joined: Sun Jan 07, 2007 9:12 pm

Re: How to copy a Card

Post by bn » Tue Jan 06, 2015 2:41 pm

Hi Ruth,

I had to do it twice because for some strange reason but try this.

make a button on the card you want to copy, set its script to

Code: Select all

on mouseUp
   copy this card
end mouseUp
now you have in "Edit" menu Paste Objects

go to the place where you want to copy your card to.
Then either use the edit menu and paste objects
Or
make a button in the new stack/or wherever

Code: Select all

on mouseUp
    paste
end mouseUp
the pasted card will be the next card

Just tried on 7.0.1 and worked.

make shure when using the "Edit" menu that the target stack is the frontmost. i.e. click on the target stack and then paste. If everything works you might want to delete the buttons.

Kind regards
Bernd

Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 332
Joined: Sun Apr 15, 2012 1:17 am
Contact:

Re: How to copy a Card

Post by Newbie4 » Tue Jan 06, 2015 3:08 pm

A simpler method is to go to the card that you want to copy. Then open up the Message Box by clicking on the "Message Box" icon in the LiveCode Editbar and in it type "Clone this card" (without the quotes)
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to copy a Card

Post by Klaus » Tue Jan 06, 2015 3:09 pm

Hi all,

why not just enter this into the message box:
clone this card
? 8)

No greyed out menu items and other inconveniences.
You may need to adjust the new cards number (position in stack),
if neccessary at all!


Best

Klaus

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to copy a Card

Post by Klaus » Tue Jan 06, 2015 3:10 pm

Damn, you beat me for a lousy minute, Newbie4! :D

Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 332
Joined: Sun Apr 15, 2012 1:17 am
Contact:

Re: How to copy a Card

Post by Newbie4 » Tue Jan 06, 2015 3:20 pm

You were probably delayed answering other posts. (either that or I have an overclocked cpu!!) :D
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to copy a Card

Post by Klaus » Tue Jan 06, 2015 3:30 pm

Newbie4 wrote:You were probably delayed answering other posts. (either that or I have an overclocked cpu!!) :D
Yep, MUST be something like this... :D

morrell
Posts: 84
Joined: Sat Dec 13, 2014 1:12 am

Re: How to copy a Card [SOLVED]

Post by morrell » Tue Jan 06, 2015 4:41 pm

Thank you chaps and so easy using the Message Box.

Kind regards,

Ruth
Last edited by morrell on Tue Jan 06, 2015 5:19 pm, edited 1 time in total.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to copy a Card [SOLVED]

Post by Klaus » Tue Jan 06, 2015 4:52 pm

Who is Bob? :shock:

:D

morrell
Posts: 84
Joined: Sat Dec 13, 2014 1:12 am

Re: How to copy a Card [SOLVED]

Post by morrell » Tue Jan 06, 2015 5:20 pm

Box's brother Klaus.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to copy a Card [SOLVED]

Post by Klaus » Tue Jan 06, 2015 5:37 pm

morrell wrote:Box's brother Klaus.
You mean: Box's brother, Klaus?

Punctuation marks can save lives:
Let's eat grandpa!
vs.
Let's eat, grandpa!

Sorry, couldn't resist :D

Post Reply