Navigation:  Reference > Functions >

SetEnvironmentVarValue()

Print this Topic Previous pageReturn to chapter overviewNext page

 

SETENV(1,2)

 

PURPOSE

Use this function to set or change an environment value, or to clear an existing value.  You can also use the GETENV() function to read an environment value that you set with this function.

 

PARTS

1 f/c/eRequired - The name of the environment variable.

 

2 f/c/eRequired - The value you want the variable set to.

 

RETURN TYPE - L

If the environment variable is set properly the function returns .True.  If not, it returns .False.

 

COMMENTS

If you don't pass an environment variable name, an error will be returned.

 

You can create new environment variables by setting the name with a value using this function.  To clear, or eliminate an existing environment variable, the value you pass should be a blank string ('').

 

NOTE:  Each time you load an executable program (an EXE file), a new environment is created for that program.  This means you won't be able to use this means to pass information between two or more executable programs.  However, you can use it to pass information between multiple RWN programs within a single runtime.

 

 

 


Page url: http://www.cassoftware.com/tas/manual/setenvironmentvarvalue().htm