IMsFormulaTransformVariable.Kind

Syntax

Kind: MsFormulaTransformVariableKind;

Description

The Kind property returns kind of variable.

Example

Executing the example requires that the repository contains a modeling container with the CONT_M identifier. The model with the Model identifier must be present in this container.

Sub Main;

Var

mb: IMetabase;

cm: IMetabaseObjectDescriptor;

Model: IMsModel;

Transform: IMsFormulaTransform;

InputsVar: IMsFormulaTransformVariables;

Varabl: IMsFormulaTransformVariable;

i: Integer;

Begin

mb := MetabaseClass.Active;

cm := mb.ItemById("CONT_M");

Model := mb.ItemByIdNamespace("Model", cm.Key).Bind As IMsModel;

Transform := Model.Transform;

InputsVar := Transform.Inputs;

For i := 0 To InputsVar.Count - 1 Do

Varabl := InputsVar.Item(i);

Debug.Write(Varabl.Id);

Select Case Varabl.Kind

Case MsFormulaTransformVariableKind.Stub: Debug.WriteLine(- variable contains the data);

Case MsFormulaTransformVariableKind.Parameter: Debug.WriteLine(- the variable is the parameter);

End Select;

End For;

End Sub Main;

After executing the example the information of view of each model variable is displayed in the console window.

See also:

IMsFormulaTransformVariable