Discuss this help topic in MsgConnect Forum

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



DataTree.RenameKey

DataTree     See also    


Changes the name of the key

Declaration

[C++]
    bool RenameKey(char* Key, char* NewName);

[Pascal]
    function RenameKey(Key, NewName : string): Boolean;

[VB6]
    not applicable;

[ActiveX]
    not applicable;

[C#]
    public bool RenameKey(string Key, string NewName);

[VB.NET]
    Public Function RenameKey(ByVal Key As String, ByVal NewName As String) As Boolean

[Java]
    public boolean RenameKey(String Key, String NewName);

[Java ME]
    public boolean RenameKey(String Key, String NewName);

[DLL]
    not applicable;

Parameters

  • Key - key name. For more information look here.
  • NewName - new name of the key.

Return value

    True on success.
    False on failure.

Description

    Use this method to change name of the key.
    Note: key can not be moved this way. It is not poddible to rename a key from 'Key' to '\AKey\ASubKey\NewName'. Use MoveEntry method for this purpose.

See also:     CurentKey     RenameValue     MoveEntry    

Discuss this help topic in MsgConnect Forum