Unified Functional Testing Automation

Value Property

Description

Sets or retrieves the value of environment variables. You can retrieve the value of any environment variable. You can set the value of only user-defined, environment variables.

Syntax

To set the value of a user-defined, environment variable:

Environment.Value(VariableName) = NewValue

To retrieve the value of a loaded environment variable:

CurrValue = Environment.Value (VariableName)

Argument

Type

Description

VariableName
String
The name of the environment variable.
NewValue
Variant
The new value of the environment variable.
CurrValue
Variant
The current value of the environment variable.

Example

The following example creates a new internal user-defined variable named MyVariable with a value of 10, and then retrieves the variable value and stores it in the MyValue variable.

Environment.Value("MyVariable")=10

MyValue=Environment.Value("MyVariable")

Note: You could omit the word Value in the statement above, because Value is the default property for the Environment object.