Page 1 of 1

Is this expected behaviour?

Posted: Sun Jul 22, 2007 6:49 am
by kpeters
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
---------------------------------------------------------------------------------

Posted: Sun Jul 22, 2007 10:20 am
by Klaus
Hi Kai,

check "the environment" in the docs:

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


Regards

Klaus