Running in IDE or as standalone
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Running in IDE or as standalone
How can I determine is the code being run in the Livecode IDE or as a standalone?
Last edited by ibe on Fri Aug 19, 2011 9:49 pm, edited 1 time in total.
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Runninin IDE or as stadalone
See the "environment" function in the Dictionary, e.g.:
if "dev" is in the environment then
-- do IDE stuff
else
-- do standalone stuff
end if
if "dev" is in the environment then
-- do IDE stuff
else
-- do standalone stuff
end if
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Runninin IDE or as stadalone
Thanks Richard. I was looking for runtime/standalone/etc but didn't think of environment.