Click here to return to the KiXtart HelpDesk main page...

KiXtart 2001 Manual

KeyExist( )

Action: Checks for the existence of a registry subkey.
 
Syntax: KEYEXIST ("subkey")
  
Parameters: Subkey

Identifies the subkey you want to locate.

Remarks: KEYEXIST is a replacement to the EXISTKEY function found in previous versions of KiXtart. While functionally equivalent, the Return Codes are now inverted, resulting in behavior similar to the EXIST function.
 
Returns:

1

Subkey found

0

Subkey not found  
 

See Also: AddKey( ), DelKey( ), DelTree( )
 
Example:

$ReturnCode = KeyExist("HKEY_CURRENT_USER\Console\Configuration")
If $ReturnCode
  ? "Key exists...."
Endif