Re: Getting the name of MC at runtime

Scott Raney (raney@metacard.com)
Wed, 4 Sep 1996 10:55:25 -0600 (MDT)

>
> Hi Folks,
>
> Does anyone know...
> At runtime, is there a simple way for my stack to determine whether it is
> running in the player environment or the full development environment?

You can do this with the "licensed" function, which returns true if
the stack is running under a licensed Home stack. If you need to
distinguish the case where the stack is run under an unlicensed Home
stack, you could combine a call to licensed with something like:
if there is a stack "Home" then whatever

In 2.1, there is also an "environment" function that will tell you
whether the stack is running in the development environment, as a
standalone run-time, as a run-time started up as a helper application
from a WWW browser, or as a plug-in.
Regards,
Scott

> --
> Phil Davis pdavis@wv.mentorg.com
> Information Synthesis, Inc. (503) 685-0306
> 8105 SW Boeckman Rd. (503) 685-0300
> Wilsonville, OR 97070 (503) 685-0303 fax
> USA
>
> -------> opinions expressed here are my own <-------
>

-- 
***************************************************************
Scott Raney   raney@metacard.com   http://www.metacard.com
Tcl and ksh: syntactic gymnastics
MetaCard: it does what you think