Moving a card to a different stack

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
phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Moving a card to a different stack

Post by phaworth » Mon Jul 20, 2009 10:17 pm

I would like to move a card that is currently in a substack of my main stack into the main stack itself. I'm sure this is simple to do but I just can't figure it out! I see a Copy Card command but can't find a Paste Card command anywhere.
Pete

SparkOut
Posts: 2944
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Mon Jul 20, 2009 10:39 pm

It is quite simple, yes!
Just add "to <destination stack>" to your command, such as

Code: Select all

copy card 4 of stack "mySubStack" to stack "myMainStack"
HTH

phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Post by phaworth » Mon Jul 20, 2009 11:08 pm

Thanks! I was looking at ways to do it through the standard IDE menus but I guess I just type the command you specified into the message box.

Post Reply