Registry global object.
This object is specific to Windows platforms.
A Registry global object is created for you and only this object can exist in the application. It is named Registry and is globally accessible.
none.
global name space.
ECMerge 2.1
The Registry object let you access registry variables.
none.
get_value
get_values_list
get_subkeys_list
see functions samples.
none.
function get_value (key_path, value_name)
returns String, Integer or undefined.
key_path. String. Path to a Windows registry key.
value_name. String. Name of the value to read
Registry object
ECMerge 2.1
Returns the value of the value with given value_name under key at key_path. The returned value is numeric if the value is a DWORD value, it is a String otherwise. If the key or value is not found, undefined is returned.
Shows message box with the location where Ellié Computing Merge was installed:
alert ( Registry.get_value ("HKEY_LOCAL_MACHINE\\SOFTWARE\\Ellié Computing\\Merge", "Path") );
Registry object.
function get_values_list (key_path, re)
function get_subkeys_list (key_path, re)
returns Array of Strings or null.
key_path. String. Path to a Windows registry key.
re. RegExp object. Regular expression which must be matched for
a value or subkey name to be returned. If omitted, all the
values or subkey names are returned.
Registry object.
ECMerge 2.1
Both functions return null if the key is not found.
get_values_list returns an Array of the names of
the values located in the given key.
get_subkeys_list returns an Array of the names of
the subkeys located in the given key.
Lists the values in Ellié Computing Merge registry key:
var values_array = Registry.get_values_list
("HKEY_LOCAL_MACHINE\\SOFTWARE\\Ellié
Computing\\Merge");
if (values_array)
alert ( values_array.join(",
") );
else
alert ("ECMerge is not yet installed
!");
Registry object.