Finding out if my app runs as a web or standalone version

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
wvtbon
Posts: 3
Joined: Sat Apr 30, 2011 10:18 am

Finding out if my app runs as a web or standalone version

Post by wvtbon » Sat Apr 30, 2011 10:29 am

I have written an application that I use both inside a webpage and as a standalone application. I need to use some platform specific code. The application needs to find out if I am running the stand alone version or the web version. The Platform function of LiveCode only returns the platform from which I open the web version and not if I am running the web version or the standalone version.

In what direction should I seek the solution?

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Finding out if my app runs as a web or standalone version

Post by Dixie » Sat Apr 30, 2011 10:45 am

wvthon...

Look at 'environment' in the dictionary.

be well

Dixie

wvtbon
Posts: 3
Joined: Sat Apr 30, 2011 10:18 am

Re: Finding out if my app runs as a web or standalone version

Post by wvtbon » Sat Apr 30, 2011 10:50 am

Great thanks!

Post Reply