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 UserProc;
Var
Mb: IMetabase;
RubInst: IRubricatorInstance;
FormulaData: IRubricatorFormulaData;
Begin
Mb := MetabaseClass.Active;
RubInst := Mb.ItemById("OBJ_RUBRICATOR").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 UserProc;
After executing the example the console window displays hash code of the formula with the 1 key.
See also: