IRubricatorFormulaData.Hash

Syntax

Hash: String;

Description

The Hash property returns hash code of a formula.

Example

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(NullAs 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:

IRubricatorFormulaData