Hash: String;
The Hash property returns hash code of a formula.
Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier that contains 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.Hash);
Else Debug.WriteLine(Formula with this key does not exist);
End If;
End Sub Main;
After executing the example the console window displays hash code of formula with the 1 key.
See also: