Startup message
Richard Gaskin
ambassador at fourthworld.com
Tue Aug 2 17:23:53 EDT 2011
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.
Check out the environment function. If running in the IDE, it will
return "development" so you can write something like:
on preOpenStack
if "dev" is not in the environment then
DoInit
end if
end preOpenStack
--
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
More information about the use-livecode
mailing list