Discuss this help topic in MsgConnect Forum

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



DataTree.OpenKey

DataTree     See also    


Opens the key and makes it current.

Declaration

[C++]
    bool OpenKey(char* Key, bool CanCreate);

[Pascal]
    function OpenKey(Key : string; CanCreate : boolean): Boolean;

[VB6]
    not applicable;

[ActiveX]
    not applicable;

[C#]
    public bool OpenKey(string aKey, bool CanCreate);

[VB.NET]
    Public Function OpenKey(ByVal aKey As String, ByVal CanCreate As Boolean) As Boolean

[Java]
    public boolean OpenKey(String aKey, boolean CanCreate);

[Java ME]
    public boolean OpenKey(String aKey, boolean CanCreate);

[Palm]
    bool OpenKey(char* Key, bool CanCreate);

[DLL]
    not applicable;

Parameters

  • Key - key to open. For more information look here.
  • CanCreate - If this parameter is True and key doesn't exist (or value with the specified name exists) the method creates a key (or turns a value into a key).

Return value

    True on success.
    False on failure.

Description

    Use this method to open the key and make it current. If the key doesn't exist (or value with the specified name exists) and CanCreate parameter is True, the method creates a key (or turns a value into a key). If the method fails to open a key it returns False but the current key is undefined.

Discuss this help topic in MsgConnect Forum