Running in IDE or as standalone

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
ibe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 61
Joined: Sun Oct 04, 2009 12:15 pm

Running in IDE or as standalone

Post by ibe » Fri Aug 19, 2011 6:45 pm

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.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Runninin IDE or as stadalone

Post by FourthWorld » Fri Aug 19, 2011 7:06 pm

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
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

ibe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 61
Joined: Sun Oct 04, 2009 12:15 pm

Re: Runninin IDE or as stadalone

Post by ibe » Fri Aug 19, 2011 7:11 pm

Thanks Richard. I was looking for runtime/standalone/etc but didn't think of environment.

Post Reply