IRubricatorSegmentsSet.Remove

Syntax

Remove(Index: Integer): Boolean;

Parameters

Index. Removed data segment index.

Description

The Remove method removes the specified segment from the collection.

Comments

The method returns True if removal was successful.

Example

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(NullAs 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:

IRubricatorSegmentsSet