Segments: IRubricatorSegments;
The Segments property returns the collection of data segments of time series database.
Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier.
Sub UserProc;
Var
Mb: IMetabase;
RubInst: IRubricatorInstance;
Segs: IRubricatorSegments;
Begin
Mb := MetabaseClass.Active;
RubInst := mb.ItemById("OBJ_RUBRICATOR").Open(Null) As IRubricatorInstance;
Segs := RubInst.Segments;
If Segs.Count > 0 Then
Segs.Clear;
End If;
End Sub UserProc;
After executing the example the collection of database segments is cleared if it contained any elements.
See also: