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

EnvironmentVariables.SetValue

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

Parameters

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

Result

Returns OK or error.

Description

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

Examples

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