REGSETSTRING

Top  Previous  Next

Syntax

error = REGSETSTRING(string key, pointer ValueName, Value as string)

Description

Sets a registry string value.

Parameters

key - The registry key path.

ValueName - The key to set.
Value - The value to set.

Return value

Returns 0 for no error, or 1 if the value could not be set.

Remarks

Setting ValueName to NULL will set the default value.  Will create the key if it doesn't exist.

Example usage

Result=RegSetString("HKEY_CURRENT_USER\\Software\\XYZCorp\\File","LastOpen","blah.txt")