v4.0
Sets the specified system environment variable. If the specified
environment variable doesn't exist, one is created.
Note: This method should be used by Python scripters who need to
set an environment variable through scripting. Since the Environment.Item property is not
settable for Python users, this method is a workaround. For more
information (and instructions for setting up Python COM support for
XSIUtils), see Environment.Item.
Environment.SetItem( Name, Value ); |
| Parameter | Type | Description |
|---|---|---|
| Name | String | The name of the system environment variable. |
| Value | String | New value for system environment variable, |
' This example illustrates how to create and set a system environment variable,
call XSIUtils.Environment.SetItem("MYVAR", 1 )
call logmessage( "MYVAR=" & XSIUtils.Environment("MYVAR" ) )
|
// This example illustrates how to create and set a system environment variable,
XSIUtils.Environment.SetItem("MYVAR", 1 );
LogMessage( "MYVAR=" + XSIUtils.Environment("MYVAR" ) );
|
# This example illustrates how to create and set a system environment variable,
XSIUtils.Environment.SetItem("MYVAR", 1 )
Application.LogMessage( "MYVAR=" + XSIUtils.Environment.Item("MYVAR" ) )
|