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

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to