|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| reg.write.ROOT(Key, Name, Value) |
Parameters
| STRING | Key | Full path to the key containing the value to write.
| | STRING | Name | Name to retrieve the value later.
| | STRING | Value | Value to write in the registry database. |
Return value
Description
Writes a value in the registry database, and returns true if success, false otherwise.
In most of the cases, reg.writeValue should be used instead if this function.
ROOT can be one of the following predefined keys:
CLASSES_ROOT
CURRENT_USER
LOCAL_MACHINE
USERS
CURRENT_CONF
|
MioScript Sample Code
// Read
&result = reg.read.CLASSES_ROOT("Test", "MyValue", "Not found!")
alert(&result)
// Write
reg.write.CLASSES_ROOT("Test", "MyValue", "This is a value")
// Read again
&result = reg.read.CLASSES_ROOT("Test", "MyValue", "Not found!")
alert(&result)
|
|
|
|