On 5/22/2016 6:45 AM, Kay C Lan wrote:
In your Mainstack, as part of it's stack script, can't you have,
within a closeStack handler that already exists or just add one:

if then number of lines of openstacks() = 2 then show stack "Mainstack"

When I had to deal with a similar issue, I put a custom property into every stack I needed to control. Then the mainstack script had a closeStack handler that checked for the property of the target and if it was true, showed the mainstack.

--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to