ModifyType: MsMethodModifyType;
The ModifyType property determines a method of forming an output series.
Executing the example requires that the repository includes a modeling container with the CONT_M identifier. This container should contain a model with the MODEL identifier that uses a determinate equation for calculation.
Add links to the Metabase and Ms system assemblies.
Sub UserProc;
Var
mb: IMetabase;
cm: IMetabaseObjectDescriptor;
Model: IMsModel;
Formula: IMsFormula;
Determ: IMsDeterministicTransform;
Transform: IMsFormulaTransform;
Begin
mb := MetabaseClass.Active;
cm := mb.ItemById("CONT_M");
Model := mb.ItemByIdNamespace("Model",cm.Key).Edit As IMsModel;
Transform := Model.Transform;
Formula := Transform.FormulaItem(0);
Determ := Formula.Method As IMsDeterministicTransform;
Determ.ModifyType := MsMethodModifyType.Replace;
(Model As IMetabaseObject).Save;
End Sub;
After executing the example the method of forming an output series on model calculation is determined: the output series contains only values of output series.
See also: