Put your logo here!

TOC PREV NEXT



isKeyWritable

Returns whether the given registry key is writable or not.

Method of

WinReg

Syntax

boolean isKeyWritable(
string key);

Parameters

The method has the following parameter:

key A string representing the path to the key

Returns

A boolean value: true if the key is writable; false if not.

Description

Example

 winreg = getWinRegistry();
 if ( winreg != null )
 {
     winreg.setRootKey ( winreg.HKEY_LOCAL_MACHINE );
    if(winreg.isKeyWritable("SOFTWARE"))
    {
         //isKeyWritable returned true
     }
     else
     {
         //isKeyWritable returned false
     }

Netscape Communications
devedge.netscape.com
TOC PREV NEXT