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

KiXtart 2001 Manual

DelKey( )

Action: Deletes the specified subkey from the registry.
 
Syntax: DELKEY ("subkey")
 
Parameters: Subkey

A string that specifies the name of the subkey you want to delete.

Remarks: This call fails if any subkeys exist within the specified subkey.
Use DelTree if you want to delete a subkey that contains subkeys.
 
Returns:
0 Subkey deleted
Error code Function failed
 
See Also: AddKey( ), DelTree( ), ReadType( ), ReadValue( ), WriteValue( )
 
Example:
$ReturnCode = DelKey("HKEY_CURRENT_USER\EZReg")
If $ReturnCode = 0
  ? "Key deleted...."
Endif