Discuss this help topic in MsgConnect Forum

Filter: C++  Pascal  C#  VB.NET  Java  Java ME  ActiveX  DLL 



DataTree.CopyToDataTree

DataTree     See also    


Copies key from one tree to another.

Declaration

[C++]
    bool CopyToDataTree(char* Key, char* ValueName, MCDataTree* NewTree, char *NewKey, bool CopySubKeys, bool CopyValue);

[Pascal]
    function CopyToDataTree(Key, ValueName: string; NewTree: TMCDataTree; NewKey : string; CopySubKeys, CopyValue: Boolean): Boolean;

[VB6]
    not applicable;

[ActiveX]
    not applicable;

[C#]
    public bool CopyToDataTree(String Key, string ValueName, MCDataTree NewTree, string NewKey, bool CopySubKeys, bool CopyValue);

[VB.NET]
    Public Function CopyToDataTree(ByVal Key As String, ByVal ValueName As String, ByVal NewTree As MCDataTree, ByVal NewKey As String, ByVal CopySubKeys As Boolean, ByVal CopyValue As Boolean) As Boolean

[Java]
    public boolean CopyToDataTree(String Key, String ValueName, MCDataTree NewTree, String NewKey, boolean CopySubKeys, boolean CopyValue);

[Java ME]
    public boolean CopyToDataTree(String Key, String ValueName, MCDataTree NewTree, String NewKey, boolean CopySubKeys, boolean CopyValue);

[DLL]
    not applicable;

Parameters

  • Key - name of the key you want to copy. For more information look here.
  • ValueName - if you want to copy only one value set its name here. If you don't set this parameter then all values will be copied. For more information look here.
  • NewTree - name of the tree to wich you copy keys
  • NewKey - path to the new key
  • CopySubKeys - set this parameter to true if you want to copy subkeys.
  • CopyValue - set this parameter to true if you want to copy key values.

Return value

    True on success.
    False on failure.

Description

    Use this method to copy key from one tree to another.

Discuss this help topic in MsgConnect Forum