Discuss this help topic in MsgConnect Forum

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



DataTree.KeyExists

DataTree     See also    


Defines, whether the key exists.

Declaration

[C++]
    bool KeyExists(char* Key);

[Pascal]
    function KeyExists(Key : string): Boolean;

[VB6]
    not applicable;

[ActiveX]
    not applicable;

[C#]
    public bool KeyExists(string Key);

[VB.NET]
    Public Function KeyExists(ByVal Key As String) As Boolean

[Java]
    public boolean KeyExists(String Key);

[Java ME]
    public boolean KeyExists(String Key);

[DLL]
    not applicable;

Parameters

  • Key - key name. For more information look here.

Return value

    True if specified key exists.
    False if specified key does not exist.

Description

    Use this method to define, whether the specified key exists. The KeyExists method doesn't create a non-existent key. To create a key use OpenKey method

See also:     CurrentKey     ValueExists

Discuss this help topic in MsgConnect Forum