Startup message

Pete pete at
Tue Aug 2 16:57:14 EDT 2011

Thanks Richard.  If I understand the message path correctly, the
preOpenStack handler in the mainstack will be executed for every substack of
the main stack that is opened?  I can easily check whether my initialisation
code has already executed in the handler but was hoping for a way to have
the code executed just once when the app started up.
Molly's Revenge <>

On Tue, Aug 2, 2011 at 1:29 PM, Richard Gaskin
<ambassador at>wrote:

> Pete wrote:
>> Thanks folks, didn't realise this message only applied to standalones.  Is
>> there then no equivalent for stacks running in the IDE, other than a
>> preOpenCard/preOpenStack handler?
> Startup is for when the engine starts up, preOpenStack is for when a stack
> is opened.  Having both messages is very useful.  Using preOpenStack for
> things you want to initialize in both the IDE and as a standalone will do
> what you need.
> --
>  Richard Gaskin
>  Fourth World
>  LiveCode training and consulting:
>  Webzine for LiveCode developers:
>  LiveCode Journal blog:**blog.irv<>
> ______________________________**_________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:

More information about the Use-livecode mailing list