Put your logo here!

TOC PREV NEXT



valueExists

Returns whether a value for the given key exists.

Method of

WinReg

Syntax

boolean keyExists (
string key
   string value );

Parameters

The method has the following parameters:

key A string representing the path to the key.
value A string representing the value being queried.

Returns

Boolean value

Description

If the user does not have read access to the given key, this will also return false.

Example

winreg = getWinRegistry();
if ( winreg != null )
{

    winreg.setRootKey( winreg.HKEY_LOCAL_MACHINE);
    if(winreg.valueExists("SOFTWARE\\mozilla", "value name"))
    {

        //valueExists returned true

    } else {

        //valueExists returned false

    }

}


Netscape Communications
devedge.netscape.com
TOC PREV NEXT