Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Queries value of an environment variable.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
EnvironmentVariables | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Name | The name of the environment variable. | "test" |
Returns text or error.
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" )
Created 8th April 2015, last changed 10th December 2017
EnvironmentVariables.SetValue - EventMonitor.Clear
Feedback: Report problem or ask question.