How to tell when last stack closed

J. Landman Gay jacque at hyperactivesw.com
Wed Feb 21 00:56:38 EST 2007


Bill Vlahos wrote:
> I have a standalone which launches one or more stacks but then 
> disappears once they are opened.
> 
> The user can close the stacks when they are done but when the last open 
> stack is closed I want to quit the standalone too.
> 
> How can I tell when there are no daughter stacks open?

Depending on how your stacks are displayed, you may be able to use:

  if the number of lines in the openstacks = 1 then quit

This assumes that the mainstack is open (though hidden) and other stacks 
are completely closed.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list