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 method of non-linear regression for calculation.

Sub Main;

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 Main;

After executing the example the names of terms, that are created in this model, are displayed in the development environment console.

See also:

IMsFormulaTermInfo