Is this expected behaviour?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kpeters
Posts: 112
Joined: Wed Mar 21, 2007 9:32 pm

Is this expected behaviour?

Post by kpeters » Sun Jul 22, 2007 6:49 am

Made a little splash screen and the code runs even though I am in edit mode? Opening the card (not the stack!) from App Browser runs it ????

Is this expected?

BTW, is there a way to detect if a script is run from within the IDE?

TIA,
Kai

Code: Select all

---------------------------------------------------------------------------------
on openStack
  send "Continue" to me in 3 seconds
end openStack
---------------------------------------------------------------------------------
on Continue
  #open stack "Login"
  close this stack
end Continue
---------------------------------------------------------------------------------

Klaus
Posts: 14190
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sun Jul 22, 2007 10:20 am

Hi Kai,

check "the environment" in the docs:

...
if the environment <> "development" then
close this stack
end if
...


Regards

Klaus

Post Reply