Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
EnvironmentVariables.Value
Queries value of an environment variable.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
EnvironmentVariables | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "EnvironmentVariables.Value"; Name ) More
Parameters
Parameter | Description | Example |
---|---|---|
Name | The name of the environment variable. | "test" |
Result
Returns text or error.
Description
Queries value of an environment variable.Examples
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
- EnvironmentVariables.ClearValue
- EnvironmentVariables.Count
- EnvironmentVariables.Name
- EnvironmentVariables.Names
- EnvironmentVariables.SetValue
Example Databases
Blog Entries
This function is free to use.
Created 8th April 2015, last changed 10th December 2017