Remove(Index: Integer): Boolean;
Index - index of the collection object description.
The Remove method removes the description of the object from the collection by its index. The method returns True if removal is successful.
In the following implementation this method is available only for the manipulation of the collection of objectsnbsp;that are copied with the time series database.
Executing the example requires that the repository contains a replication object with the CubeMetaUpd identifier.
Sub Main;
Var
Mb: IMetabase;
u: ICubeMetaUpdateEx;
ObjectsFilter: IMetabaseObjectDescriptors;
Begin
Mb := MetabaseClass.Active;
u := Mb.ItemById("CubeMetaUpd").Edit As ICubeMetaUpdateEx;
ObjectsFilter := u.ObjectsFilter;
If ObjectsFilter.Count > 0 Then
ObjectsFilter.Remove(ObjectsFilter.Count-1);
End If;
End Sub Main;
After executing the example, the last element in the replication object is removed from the collection of the nested objects of time series database being copied.
See also: