Is it possible to move cards between stacks?

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
Clarkey
Posts: 109
Joined: Fri Jun 11, 2010 11:10 am

Is it possible to move cards between stacks?

Post by Clarkey »

Hi folks, I seem to have a corrupt main stack so is it possible to create a new main stack and simply move cards between stacks? There doesn't seem to be an option in the properties inspector, similar to the one used to re-assign a sub-stack's to a Main Stack?
Thanks,
Keith..
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Is it possible to move cards between stacks?

Post by Klaus »

Hi Keith,

you could use a script/message box:
..
copy cd "Name of card" of stack "el corrupto" to stack "fresh and healthy"
...

Best

Klaus
Clarkey
Posts: 109
Joined: Fri Jun 11, 2010 11:10 am

Re: Is it possible to move cards between stacks?

Post by Clarkey »

Hi Klaus, Ah, that's brilliant - thanks! That will save a lot of re-work. Nice naming convention, too! :D
Best,
Keith..
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Is it possible to move cards between stacks?

Post by dunbarx »

A warning, though. In HC sometimes it was a card that was corrupted, not the stack. It was possible to find this card by navigation, whether manually or under script control if there were lots of cards.

Once it was located, I would skip the card, So in metacode, if cd 126 was the culprit you would:

copy card 1 to 125
copy card 127 to the number of cds
Clarkey
Posts: 109
Joined: Fri Jun 11, 2010 11:10 am

Re: Is it possible to move cards between stacks?

Post by Clarkey »

Thanks dunbarx but I think the issue is the main stack, as it's locking the text of any new fields on any new cards on the main or sub-stack - as per this post http://forums.runrev.com/phpBB2/viewtop ... f=8&t=5487
Post Reply