GetFactSegments(Data: IRubricatorFactData): IRubricatorSegmentsSet;
Data. Indicator.
The GetFactSegments property returns the number of data ranges including the specified indicator.
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(Null) As 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: