|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| reg.readValue(productID, name, value) |
Parameters
| PID | productID | Optional. Product ID. If set to null, the Id of the current application is used.
| | STRING | name | Name as used when the value was saved with reg.writeValue.
| | STRING | value | Default value returned if the name was not found in the registry database. |
Return value
Description
Reads a value from the registry database.
See also: reg.writeValue.
Info: The value is read from HKEY_LOCAL_MACHINE if the user is administrator, or from HKEY_CURRENT_USER if the user is not administrator.
For more information: system.userIsAdmin.
Note: This function is defined in the library klib.k and is linked automatically. |
MioScript Sample Code
// Read
&result = reg.readValue("{APP_ID}", "MyValue", "Not found!")
alert(&result)
// Write
reg.writeValue("{APP_ID}", "MyValue", "This is a value")
// Read again
&result = reg.readValue("{APP_ID}", "MyValue", "Not found!")
alert(&result)
|
|
|
|