Startup message

Bob Sneidar bobs at twft.com
Tue Aug 2 18:04:00 EDT 2011


Insert an exit openStack or exit preOpenstack at the top of the handler and comment it out when you want to avoid running the handlers and  delete the comments when you want to run them. Alternately check the state of a property of the stack and run only when true. Seems simple enough. 

Bob


On Aug 2, 2011, at 1:49 PM, Slava Paperno wrote:

> On a related note: I have often wished that preOpenStack and openStack were
> not called when I open the stack in the IDE. When the programming is not
> finished, some calls that are already written into those handlers cannot yet
> be successful because other parts are missing. The result is that the first
> thing you see when you open the stack in the IDE is an error.
> 
> My preference would be for the IDE to open the stack in the Browse mode, and
> for those two handlers to be called when I switch to the Run mode. And
> "sometimes" I think that what does happen, but I have never stopped to
> investigate if it's true.
> 
> Slava
> 
>> -----Original Message-----
>> From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
>> bounces at lists.runrev.com] On Behalf Of Richard Gaskin
>> Sent: Tuesday, August 02, 2011 4:30 PM
>> To: use-livecode at lists.runrev.com
>> Subject: Re: Startup message
>> 
>> 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: http://www.fourthworld.com
>>  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
>>  LiveCode Journal blog: http://LiveCodejournal.com/blog.irv
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list