IMsCompositeFormulaTerm.InversedExpressionText

Syntax

InversedExpressionText: String;

Description

The InversedExpressionText property returns text of the formula, based on which composite term value is calculated taking into account term transformations.

Example

Executing the example requires that the repository contains a modeling container with the MODEL_SPACE identifier. This container must contain a model with the MODEL identifier that is calculated by the method of linear regression (OLS estimation).

Sub Main;

Var

mb: IMetabase;

ms: IMetabaseObjectDescriptor;

model: IMsModel;

fTransform: IMsFormulaTransform;

lin: IMsLinearRegressionTransform;

cfTerm: IMsCompositeFormulaTerm;

Begin

mb := MetabaseClass.Active;

ms := mb.ItemById("MODEL_SPACE");

model := mb.ItemByIdNamespace("MODEL", ms.Key).Bind As IMsModel;

fTransform := model.Transform;

lin := fTransform.FormulaItem(0).Method As IMsLinearRegressionTransform;

cfTerm := lin.Explanatories.Item(0);

Debug.WriteLine(cfTerm.InversedExpressionText);

End Sub Main;

After executing the example the console window displays text of the formula, by which value of the first model term is calculated taking into account transformations.

See also:

IMsCompositeFormulaTerm