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 should contain a model with the MODEL identifier that is calculated by the linear regression (OLS estimation) method.

Add links to the Metabase and Ms system assemblies.

Sub UserProc;
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;

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