Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | reg.write.ROOT SEARCH    

  Functions
reg.createKey.ROOT
reg.deleteKey.ROOT
reg.deleteValue.ROOT
reg.read.ROOT
reg.readValue
reg.write.ROOT
reg.writeValue

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
reg.write.ROOT

Language: MioScript
Product: MioFactory


Syntax

reg.write.ROOT(Key, Name, Value)


Parameters

STRINGKeyFull path to the key containing the value to write.
STRINGNameName to retrieve the value later.
STRINGValueValue to write in the registry database.


Return value

Status.



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)