We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS


Sets the value of a key, when that value is a number.

Method of

WinReg object


int setValueNumber ( String subkey, String valname, Number value );


The method has the following parameters:

The key path to the appropriate location in the key hierarchy, such as "Software\\Netscape\\Navigator\\Mail".
The name of the value-name/value pair whose value you want to change.
A number representing the new string value.


0 if it succeeded; a nonzero number if it failed to schedule the action. For a list of possible values, see Return Codes.


The setValueNumber method sets the value of a key when that value is a number. Use this method if the value you want to set is a number. If the value is not a number, use the setValue or setValueString methods instead.

Document Tags and Contributors

Contributors to this page: Sheppy, ethertank, trevorh, Fredchat, Rod Whiteley
Last updated by: Sheppy,