Variable Class

A variable object represents a variable in an analytic calculation engine rule.

Use the following code to create a variable object:

&Variable = create Variable(&Constants.Variable_Type, "Variable_Name");

Where Variable_Type is one of the following:

Value

Description

Variable_Type_Auto

Use a local variable.

Variable_Type_Expression

The variable is in an expression. Specify an already instantiated rule expression object for the Variable_Name.

Variable_Type_Dimension

The variable is a dimension name. Specify a dimension name for the Variable_Name.

The following code example creates a variable, then adds it to the rule.

&Variable = create Variable(&Constants.Variable_Type_Auto, "StartVal");
&FunCall.AddArgument(&Variable);