DeleteRegValue – System Function**






DeleteRegValue Function


Description

The DeleteRegValue function deletes the specified value in the Registry. Not available in WinTask Lite. Use all registry functions with caution. If you are unfamiliar with the Windows Registry we recommend that you do not use these functions. Removing or modifying a registry entry can cause your system to become unstable.

Syntax

DeleteRegValue(<path>)
or
ret = DeleteRegValue(<path>)

Parameter

<path>, string, path for the value to delete in the Registry (it’s the path for the value to be deleted, not the value itself).

Return Value

ret, numeric return code. If the deletion is successful, the function returns 0, otherwise use this return code for error management.

Example

res = DeleteRegValue("HKEY_CURRENT_USER\\Software\\Taskware\\WinTask 1.0\\TaskEdit\\Recent File list\\File1")