Question About PreOpenStack

Gregory Lypny gregory.lypny at videotron.ca
Mon Sep 12 13:40:35 EDT 2011


Thanks Bob,

Another good tip to add to my notebook!  Unintended re-initialization can bring disastrous consequences.  This, I have discovered.  Sigh.

Gregory




On Mon, Sep 12, 2011, at 1:00 PM, use-livecode-request at lists.runrev.com wrote:

> One of the things I do to prevent re-initialization of a card or stack is I create a global, and upon successful initialization I set it to true. I check it's value before initializing and only call the initialization handler if the global is not set to true. This has the benefit of being able to recall the initialization if needed during development without having to quit or close.remove from memory the stack. In the message box: 
> 
> global stackInit;put false into stackInit;openStack
> 
> Bob




More information about the Use-livecode mailing list