mozilla
Your Search Results

    keyExists

    keyExists

    Returns whether the key exists.

    Method of

    WinReg object

    Syntax

    boolean keyExists ( string key);
    

    Parameters

    The method has the following parameter:

    key
    A string representing the path to the key

    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.keyExists("SOFTWARE\\mozilla"))
        {
    
        //keyExists returned true
    
        } else {
    
        //keyExists returned false
    
        }
    }
    

    Document Tags and Contributors

    Contributors to this page: Sheppy, Fredchat, Dria, trevorh, Rod Whiteley
    Last updated by: Sheppy,
    Hide Sidebar