IMsFormulaTransform.LoadFromXml

Syntax

LoadFromXml(Xml: IXMLDOMElement);

Parameters

Xml. Object, from which model parameters are loaded.

Description

The LoadFromXml method loads model parameters from XML.

Example

Executing the example requires a form, the button Button1 that is placed on this form and the Memo component with the Memo1 identifier. The Memo1 component must contain model parameters as an XML code.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    node: IXmlDomElement;
    Transform: IMsFormulaTransform;
    cl: FreeThreadedDOMDocument60;
    ActiveMetabase: IMetabase;
Begin
    cl := New FreeThreadedDOMDocument60.Create;
    cl.loadXML(Memo1.Text);
    node := cl.documentElement;
    ActiveMetabase := MetabaseClass.Active;
    Transform := New MsFormulaTransform.Create(ActiveMetabase);
    Transform.LoadFromXml(node);
End Sub Button1OnClick;

After executing the example the model parameters are loaded to the Transform variable.

See also:

IMsFormulaTransform