Transform: IMsFormulaTransform;
Transform: Prognoz.Platform.Interop.Ms.IMsFormulaTransform;
The Transform property determines parameters of the model contained in ModelBox.
The property is outdated. This property is recommended to use only for reading. To address to model parameters, use methods and properties of the IUiModel interface.
Executing the example requires a form, a button with the Button1 identifier on the form, the ModelBox component with the ModelBox1 identifier and the UiModel component that is a data source for ModelBox1. A model must be loaded to UiModel.
Add a link to the Ui system assembly. This code is handler of the OnClick event for the Button1 button.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
StringGen: IMsTransformStringGenerator;
Begin
StringGen := ModelBox1.Transform.CreateStringGenerator;
WinApplication.InformationBox(StringGen.Execute);
End Sub Button1OnClick;
After executing the example, a message that contains string view of model parameters is displayed.
Executing the example requires a form, a button with the Button1 identifier on the form, the ModelBox component with the ModelBox1 identifier and the UiModel component that is a data source for ModelBox1. A model must be loaded to UiModel.
Imports Prognoz.Platform.Interop.Ms;
…
Private Sub Button1_Click(sender: System.Object; e: System.EventArgs);
Var
StringGen: IMsTransformStringGenerator;
Begin
StringGen := modelBoxNet1.Transform.CreateStringGenerator();
MessageBox.Show(StringGen.Execute());
End Sub;
After executing the example, a message that contains string view of model parameters is displayed.
See also: