Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0    Statistic  


Queries value of an environment variable.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
EnvironmentVariables 5.1 Yes Yes Yes Yes Yes

MBS( "EnvironmentVariables.Value"; Name )


Parameter Description Example value
Name The name of the environment variable. "test"


Returns text or error.


Queries value of an environment variable.


Query user name on Mac:

MBS( "EnvironmentVariables.Value"; "USER" )

Query user name on Windows:

MBS( "EnvironmentVariables.Value"; "USERNAME" )

Query app data path on Windows:

MBS( "EnvironmentVariables.Value"; "APPDATA" )

Query language on FileMaker Cloud:

MBS( "EnvironmentVariables.Value"; "LANG" )

See also

Example Databases

EnvironmentVariables.SetValue   -   EventMonitor.Clear

Feedback: Report problem or ask question.

MBS Xojo blog