Stack open?

Klaus on-rev klaus at major.on-rev.com
Tue Feb 16 13:02:14 EST 2010


Am 16.02.2010 um 18:56 schrieb J. Landman Gay:

> Klaus on-rev wrote:
>> Hi Jim,
>>> Andrew Kluthe wrote:
>>> 
>>>> I need to check to see if a stack is open. Not sure of the syntax or
>>>> even if
>>>> that can be done.
>>> Besides other suggestions given, you can also use:
>>> 
>>> If there is a stack "stackName" then...
>> sorry, but this does not work as one might exspect! :-)
>> If there is a stackfile "stackname.rev" in the defaultfolder then this will also resolve to true
>> even if this stack is NOT open.
> 
> It will also return true if there is a substack with that name, whether it is open or not. Also it returns true if a stack has been closed but has its destroystack property set to false, in which case it is still in RAM though not open.

YEP! All this and universal peace :-)

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

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com




More information about the use-livecode mailing list