How to check what card a stack is currently viewing
revdan at danshafer.com
Mon Nov 28 15:31:13 EST 2005
Those who have already answered have told you how to check for the
current card in the stack in which the handler is executing. But I
had a feeling you were trying to check the current card showing in a
stack *other* than the current stack.
If that's the case, the secret is to temporarily make the other stack
the current stack. There are several ways to do this. The simplest
one I could come up with off the top of my head looks something like
push this card
go stack "otherStack"
put the name of this card into foo
The "unlock screen" isn't strictly speaking necessary but I always
like to pair those commands in the same handler just to make my code
more readable later.
On Nov 28, 2005, at 9:43 AM, Jason - Polydiam Industries Limited wrote:
> How do I currently check what card a stack is displaying?
Dan Shafer, Information Product Consultant and Author
Get my book, "Revolution: Software at the Speed of Thought"
More information about the Use-livecode