deleteValue

deleteValue

Removes the value of an arbitrary key.

Method of

WinReg object

Syntax

int deleteValue ( String subkey, String valname);

Parameters

The deleteValue method has the following parameters:

subkey
The key path to the appropriate location in the key hierarchy, such as "Software\\Netscape\\Navigator\\Mail".
valname
The name of the value-name/value pair you want to remove.

Returns

0 if it succeeded; a nonzero number if it failed to schedule the deletion.