Clear;
The Clear method clears data segments collection.
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: