IRubricatorSegmentsSet.Remove

Syntax

Remove(Index: Integer): Boolean;

Parameters

Index. Removed data segment index.

Description

The Remove method removes the specified segment from the collection. 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 Main;

Var

mb: IMetabase;

rubInst: IRubricatorInstance;

Rub: IRubricator;

Segs: IRubricatorSegments;

Begin

mb := MetabaseClass.Active;

Rub := mb.ItemById("OBJ_RUBRICATOR").Bind As IRubricator;

rubInst := (Rub As IMetabaseObjectDescriptor).Open(Null) As IRubricatorInstance;

Segs := rubInst.Segments;

If Segs.Count > 0 Then

Segs.Remove(0);

End If;

End Sub Main;

After executing the example the first element is removed from the collection of time series database segments.

See also:

IRubricatorSegmentsSet