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: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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" )

See also

Example Databases

This function is free to use.

Created 8th April 2015, last changed 8th April 2015


EnvironmentVariables.Names - EnvironmentVariables.Value

💬 Ask a question or report a problem