Application.getEnvVar() This page was last modified over 30 day(s) ago and has 1 comment(s)


Back to Application Class Summary

Availability
Windows, Mac OSX, Linux

Usage
mdm.Application.getEnvVar(varName:String):String

Parameters
varName:String - Name of the environment variable

Returns
A String

Description
Returns an environment variable.

Notes
You could use this method to communicate between different processes and/or between different forms (windows) within the same application. Environment variables set by starting process application are available for other applications run from within that process.

Example Code
//Retrieves an environment variable called 'myEnvVar' :
var myVar:String = mdm.Application.getEnvVar("myEnvVar");

mdm.Application Class Example Downloads
No Example Downloads Available


User Comment by Bjarne on 2nd April 2012 - 23:19
WINDOWS ENVIRONMENT VARIABLES:
%ALLUSERSPROFILE%, %APPDATA%, %COMPUTERNAME%, %COMSPEC%, %HOMEDRIVE%, %HOMEPATH%, %PATH%, %PATHEXT%, %PROGRAMFILES%, %PROMPT%, %SYSTEMDRIVE%, %SYSTEMROOT%, %TEMP%, %TMP%, %USERNAME%, %USERPROFILE%, %WINDIR%, %DATE%, %TIME%, %CD%, %ERRORLEVEL%, %RANDOM%

MAC ENVIRONMENT VARIABLES:
HOME, SHELL, USER, PATH, LOGNAME, PWD, MANPATH, VISUAL

Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page