Going from stack to 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
MCKALISTAIR
Posts: 4
Joined: Wed Dec 17, 2014 8:03 pm

Going from stack to stack

Post by MCKALISTAIR » Thu Feb 19, 2015 5:50 pm

Heres the situation. I have two stacks, one called game and one called setup. I would like to have a button that goes from card 1 of the game stack to card 5 of the setup stack. Would somebody be able to help me?

Thanks

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

Re: Going from stack to stack

Post by Klaus » Thu Feb 19, 2015 8:11 pm

Hi MCKALISTER,

well, you might be surprised, but the command is:
...
go cd 5 of stack "setup"
...
## And back again:
...
go cd 1 of stack "game"
...
:D


Best

Klaus

Post Reply