IRubricatorSegmentsSet.GetFactSegments

Syntax

GetFactSegments(Data: IRubricatorFactData): IRubricatorSegmentsSet;

Parameters

Data. Indicator.

Description

The GetFactSegments property returns the number of data ranges including the specified indicator.

Example

Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier that contains determined segments, and an indicator with the 89817 key.

Sub UserProc;
Var
    Mb: IMetabase;
    RubInst: IRubricatorInstance;
    Segs: IRubricatorSegments;
    Factor: IRubricatorFactData;
Begin
    Mb := MetabaseClass.Active;
    RubInst := Mb.ItemById("OBJ_RUBRICATOR").Open(NullAs IRubricatorInstance;
    Segs := RubInst.Segments;
    Factor := rubInst.GetFactData(89817);
    Debug.WriteLine(Segs.GetFactSegments(Factor).Count);
End Sub UserProc;

After executing the example the console window displays the number of segments that contain the indicator with the specified key.

See also:

IRubricatorSegmentsSet