IMsFormulaTermInfo.TermText

Syntax

TermText: String;

Description

The TermText property returns the name of the term that appears in the list of terms.

Comments

This name does not include the initial transformation of term.

Example

Executing the example requires that the repository contains a modeling container with the KONT_MODEL identifier. This container contains a modeling problem with the NEW_NONLINREG identifier that uses the non-linear regression method for calculation.

Add links to the Metabase and Ms system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Model: IMsModel;
    Trans: IMsFormulaTransform;
    NonLinear: IMsNonLinearRegressionTransform;
    Oper: IMsFormulaTermList;
    Info: IMsFormulaTermInfo;
    i: Integer;
Begin
    MB := MetabaseClass.Active;
    Model := MB.ItemByIdNamespace("New_NonLinReg",MB.ItemById("KONT_MODEL").Key).Bind As IMsModel;
    Trans := Model.Transform;
    NonLinear := Trans.FormulaItem(0).Method As IMsNonLinearRegressionTransform;
    Oper := NonLinear.Operands;
    For i := 0 To Oper.Count - 1 Do
        Info := Oper.Item(i).TermInfo;
        Debug.WriteLine(Info.TermText);
    End For;
End Sub UserProc;

After executing the example the development environment console displays the names of terms created in this model.

See also:

IMsFormulaTermInfo