Has anyone a link to a tutorial or article on decoding the issues with using library stacks and calling subroutines? I am having a very hard time figuring out the issues with exactly where and when the defaultStack property and the message path changes as library subroutines are used. I do not appear to be getting consistent assumptions between library routine and application routine calls to stack objects.
Thanks, Walt
Library Stack Inquiry
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Library Stack Inquiry
Walt Brown
Omnis traductor traditor
Omnis traductor traditor
Re: Library Stack Inquiry
Hi Walt,
The defaultStack is often the stack containing the target. This can be a button being clicked by the user or a card receiving an idle message. When you use the go command, the defaultStack changes to the newly opened stack. Naturally, you can always set the defaultStack explicitly. In all other cases, you can assume that the topstack is also the defaultStack.
What kind of issues are you having?
Best,
Mark
The defaultStack is often the stack containing the target. This can be a button being clicked by the user or a card receiving an idle message. When you use the go command, the defaultStack changes to the newly opened stack. Naturally, you can always set the defaultStack explicitly. In all other cases, you can assume that the topstack is also the defaultStack.
What kind of issues are you having?
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Library Stack Inquiry
Thanks Mark. I had a series of specific issues with the defaultStack changing. I have since made myself a workaround for that and defaultFolder, but it then overrides LC's method. I was wondering if there was an "all-in-one-place" explanation that anyone had seen.
Walt
Walt
Walt Brown
Omnis traductor traditor
Omnis traductor traditor
-
- Posts: 919
- Joined: Wed Nov 04, 2009 11:41 am
Re: Library Stack Inquiry
Hi Walt,
Re:
http://forums.runrev.com/phpBB2/viewtop ... 634#p26634
I also posted a livecode file that attempts to show when and how subroutines are placed in the message path (scope). Its not a the tutorial you requested but it may be of help.
Best wishes
Simon
Re:
I found that I was getting tied up in knots when attempting to use library stacks. I started a thread named "confused by library stacks" which may be of some help - I think the following is a link.Has anyone a link to a tutorial or article on decoding the issues with using library stacks and calling subroutines?
http://forums.runrev.com/phpBB2/viewtop ... 634#p26634
I also posted a livecode file that attempts to show when and how subroutines are placed in the message path (scope). Its not a the tutorial you requested but it may be of help.
Best wishes
Simon
best wishes
Skids
Skids