Copying multiple cards to the same stack

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
JasonTravers
Posts: 7
Joined: Fri Mar 13, 2009 6:23 pm

Copying multiple cards to the same stack

Post by JasonTravers »

Hi all.

Is there an easy way to copy/paste several cards within a stack? I want to copy cards 1-20 to the end of my stack, but don't want to do this by copying one card at a time. I imagine I will need to use the message box, but am not sure what the code should look like.

Thanks!
Jason
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus »

Hi Jason,

everything works ok? :D


Try this:
...
lock messages
#!!
repeat with i = 1 to 20
go cd i
copy this cd
go last cd
paste
end repeat
...


Best

Klaus
JasonTravers
Posts: 7
Joined: Fri Mar 13, 2009 6:23 pm

Post by JasonTravers »

Hey Klaus!
Didn't want to keep bugging you, but you found me on the forums! LOL!

Yes, everything is working perfectly! Just producing stacks and more stacks. Thanks for the tip! A time saver for sure.

:D

You are the best, Klaus!!!

Thanks again!
Jason
Post Reply