Remove(Index: Integer): Boolean;
Index. Removed data segment index.
The Remove method removes the specified segment from the collection.
The method returns True if removal was successful.
Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier, in which segments must be determined.
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.Remove(0);
End If;
End Sub UserProc;
After executing the example the first element is removed from the collection of time series database segments.
See also: