How to tell when last stack closed

Phil Davis revdev at pdslabs.net
Wed Feb 21 01:27:43 EST 2007


Simple is good. I vote for Jackie's solution.

Phil Davis


J. Landman Gay wrote:
> 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.
> 



More information about the Use-livecode mailing list