Jim At Consensus
jmac at consensustech.com
Sun May 29 09:48:59 EDT 2022
At the risk of repeating someone else’s suggestion. I address this by have an on closeStsck handler in the main stack. I’m in my phone so don’t have access to code but it’s along the lines of:
If the short name of me is “xxxx” then closeStack
Works rely as bay for me though variations could include “if name is not “xxx” then exit closeStsck
Will see which is correct when I get to my machine.
NOTE: This has worked reliably for years. I doubt something has changed but perhaps?
NOTE 2: To avoid the “mental pain” of not having something like this working, I’d recommend creating a new stack and sub stack combination just to trouble shoot the problem. I’d say 9 times out of 10, I can get the simple test to work which points me to some other issue I never would have discovered that ended up being the issue (like not remembering that before my closeStack was issued, i navigated back to the main stack by a go card “YYYY” of the main stack as part of my trying to figure out what was happening but the timing was such I never saw the transition.)
Sent from Jim's iPhone
Please excuse brevity, typos and errors
> On May 29, 2022, at 4:05 AM, General 2018 via use-livecode <use-livecode at lists.runrev.com> wrote:
> Still no luck, no closestack handler in “main stack” , tried the other suggestions with hide/show etc. But still “mainstack” quits on closing the “substack xyz”
> Will keep looking……..
>>> On 29 May 2022, at 00:12, Mark Wieder via use-livecode <use-livecode at lists.runrev.com> wrote:
>>> On 5/28/22 07:15, General 2018 via use-livecode wrote:
>>> Hi ,
>>> New to substacks - I have a “mainstack” used as a menu page for 2x “substacks”
>>> When “substacks” opened from “mainstack” they open fine using — go to stack “xyz”
>>> The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ?
>>> Looked at docs and other posts. But stuck no doubt I have missed something.
>> Do you have a closeStack handler in the script of the mainstack?
>> Mark Wieder
>> ahsoftware at gmail.com
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode