IMsFormulaTransformVariable.ParameterID

Syntax

ParameterID: String;

Description

The ParameterID property determines the parameter identifier, which corresponds to a 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;

Debug.WriteLine(Variables that are the parameters:);

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

Varabl := InputsVar.Item(i);

If Varabl.ParameterID <> "" Then

Debug.WriteLine("  " + Varabl.Id);

End If;

End For;

End Sub Main;

After executing the example the identifiers of variables that are the parameters are displayed in the console window.

See also:

IMsFormulaTransformVariable