FormulaXML: String;
The FormulaXML property determines XML code of a formula.
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 Main;
Var
mb: IMetabase;
Rub: IMetabaseObject;
RubInst: IRubricatorInstance;
formulaData: IRubricatorFormulaData;
Begin
mb := MetabaseClass.Active;
Rub := mb.ItemById("OBJ_RUBRICATOR").Edit;
RubInst := Rub.Open(Null) As 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 Main;
After executing the example the console window displays XML code of formula with the 1 key.
See also: