Core Function EnvSet

From Sputnik Wiki
Jump to: navigation, search
EnvSet( <tag>, <expression> )

Contents

Description

Set the value of an environment variable.

Parameters

tag

Name of the environment variable to set.

expression

Value to set the environment variable to.

Return Value

Success: true

Failure: false

Remarks

A environment variable set in this way will only be accessible to programs that Sputnik spawns (Run, RunWait).

Once Sputnik closes, the variables will cease to exist.

Example

EnvSet("MYENV", "this is a test");
MsgBox(  EnvGet("MYENV")  );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox