How to tell when last stack closed

Bill Vlahos bvlahos at mac.com
Wed Feb 28 01:47:44 EST 2007


Neat solution. It works.

Thanks.
Bill Vlahos

On Feb 20, 2007, at 9:56 PM, 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.
>
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list