Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Sets an environment variable.

Component Version macOS Windows Linux Server iOS SDK
EnvironmentVariables 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "EnvironmentVariables.SetValue"; Name; Value )   More


Parameter Description Example
Name The name of the environment variable. "test"
Value The new value as text. "Hello"


Returns OK or error.


Sets an environment variable.
Only visible within FileMaker application and subprocesses launched after the change.


Set a new Variable:

MBS( "EnvironmentVariables.SetValue"; "test"; "Hello World" )

Disable referral chasing during queries to the LDAP server:

MBS( "EnvironmentVariables.SetValue"; "LDAPREFERRALS"; "off" )

See also

Example Databases

This function is free to use.

Created 8th April 2015, last changed 3th January 2024

EnvironmentVariables.Names - EnvironmentVariables.Value