Revlet - how to get back to the main stack from a substack?

Keith Clarke keith.clarke at clarkeandclarke.co.uk
Wed Mar 23 11:44:40 EDT 2011


...oh, you had me hoping for a quick fix then - never mind ;-)

On 23 Mar 2011, at 15:18, Joe Lewis Wilkins wrote:

> Ooops! I didn't pick up that you're working with revlets. Sorry, mine are just ordinary LiveCode stacks. The syntax for mine is so very simple: recognize the stack to which you wish to return and "push this cd"; when you're ready to return to that stack, regardless of where you may have gone in the interim just "pop cd" and you'll be back to the cd of the stack in which you "pushed". Obviously, not rocket science. You may have gone to a lot of different cards in different stacks between the push and the pop. However, I've never used it in a revlet.
> 
> Joe Lewis Wilkins
> Architect & Director of Product Development for GSI
> <www.glsysinc.com>
> 
> 
> On Mar 23, 2011, at 7:51 AM, Keith Clarke wrote:
> 
>> Hi Joe,
>> Thanks for the suggestion, but I don't seem to be able to pop a card that's in a different stack - but maybe I just have my syntax wrong.
>> Any chance you could provide an example line of code that you know successfully pops a revlet's main-stack card from a script on a substack object?
>> Thanks,
>> Keith..    
>> On 23 Mar 2011, at 14:25, Joe Lewis Wilkins wrote:
>> 
>>> I've had success moving between several stacks, main and sub just using the "push card" and "pop card" commands at appropriate times. Doesn't matter what the IDs or names are. Try it; you'll like it.
>>> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list