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
Last updated by:
Sheppy,