Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2    Statistic  

Shell.AddEnvironment

Adds an entry for environment variables.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Shell 7.5 Yes Yes Yes Yes No

MBS( "Shell.AddEnvironment"; ShellRef; Name; Value )

Parameters

Parameter Description Example value
ShellRef The reference number from the shell. $shell
Name The name of the variable. "PATH"
Value The value of the environment variable. "C:\test"

Result

Returns OK or error.

Description

Adds an entry for environment variables.

Examples

Try environment functions:

Set Variable [ $shell ; Value: MBS( "Shell.New" ) ]
# set
Set Variable [ $s ; Value: MBS( "Shell.AddEnvironment"; $shell; "test"; "Hello") ]
# and query
Show Custom Dialog [ "Environment" ; MBS( "Shell.GetEnvironment"; $shell) ]
Set Variable [ $r ; Value: MBS("Shell.Release"; $shell) ]

See also


Shell.AddArgument   -   Shell.AvailableBytesError

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins