Environment global object.
A Environment global object is created for you and only this object can exist in the application. It is named Environment and is globally accessible.
none.
global name space.
ECMerge 2.1
The Environment object let you access environment variables.
none.
see functions samples.
none.
function get_value (value_name)
returns String or undefined
value_name. String. Name of the environment variable to retrieve
Environment object
ECMerge 2.1
Queries the value of an environment variable. Returns undefined if the value is not found, and the string contained by the variable otherwise.
Get the well-known PATH variable and split it according to platform specific uses:
var paths;
var path = Environment.get_value ("PATH");
if (path !== undefined)
{
if (Machine.system_name.match
(/win.*/i))
paths = path.split
(";");
else
paths =
path.split(":");
}
Machine object