How to check what card a stack is currently viewing

Chipp Walters chipp at chipp.com
Mon Nov 28 16:14:57 EST 2005


Easier to read might be,


   put the name of the current card of stack "fred" into tName


Dan Shafer wrote:
> 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  this:
> 
> on mouseUp
>   lock screen
>   push this card
>   go stack "otherStack"
>   put the name of this card into foo
>   unlock screen
>   pop card
>   answer foo
> end mouseUp
> 
> 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
> http://www.shafermedia.com
> Get my book, "Revolution: Software at the Speed of Thought"
>  From http://www.shafermediastore.com/tech_main.html
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 

-- 
--------------
Chipp Walters
www.altuit.com




More information about the use-livecode mailing list