Remove(Index: Integer): Boolean;
Index - correspondence index in the collection.
The Remove method removes the correspondence by its index from the collection. The method returns True if removal was successful.
Executing the example requires the C:\FC_COPY.XML file that contains parameters of time series database copying as XML code. Parameters must be stored in the Root section.
Sub Main;
Var
mb: IMetabase;
RubUpdateEx: ICubeMetaUpdateEx;
XmlDoc: IXMLDOMDocument3;
el: IXmlDomElement;
i: Integer;
DictRemapings: ICubeMetaUpdateDictionaryRemapings;
DictRemap: ICubeMetaUpdateDictionaryRemaping;
Begin
mb := MetabaseClass.Active;
RubUpdateEx := New CubeMetaUpdateClass.Create As ICubeMetaUpdateEx;
XmlDoc := New DOMDocument60.Create;
XmlDoc.load("C:\FC_COPY.XML");
el := XmlDoc.selectSingleNode("root") As IXmlDomElement;
RubUpdateEx.LoadFromXml(el, mb);
DictRemapings := RubUpdateEx.DictionaryRemapings;
For i := 0 To DictRemapings.Count - 1 Do
DictRemapings.Remove(i);
End For;
End Sub Main;
After executing the example parameters of time series database copying saved as XML code are loaded from the C:\FC_COPY.XML file. All correspondences between objects of the copied time series database and objects of the copy are removed.
See also: