IRubricatorFormulaData.FormulaXML

Syntax

FormulaXML: String;

Description

The FormulaXML property determines XML code of a formula.

Example

Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier. The time series database must contain a formulas dictionary.

Sub UserProc;
Var
    Mb: IMetabase;
    RubInst: IRubricatorInstance;
    FormulaData: IRubricatorFormulaData;
Begin
    Mb := MetabaseClass.Active;
    RubInst := Mb.ItemById("OBJ_RUBRICATOR").Open(NullAs IRubricatorInstance;
    FormulaData := RubInst.GetFormulaData(1);
    If FormulaData <> Null Then
        Debug.WriteLine(FormulaData.FormulaXML);
    Else
        Debug.WriteLine("Formula with this key does not exist");
    End If;
End Sub UserProc;

After executing the example the console window displays XML code of formula with the 1 key.

See also:

IRubricatorFormulaData