RegistryValues
PowerScript function
Description
Obtains the list of named values associated with a key.
Syntax
|
1 |
RegistryValues ( key, valuename ) |
|
Argument |
Description |
|---|---|
|
key |
A string whose value is the key in the system registry for To uniquely identify a key, specify the list of parent |
|
valuename |
An array variable of strings in which you want to store If the array is variable size, its upper bound will If the array is fixed size, it must be large enough to |
Return value
Integer. Returns 1 if it succeeds and -1 if an error occurs.
Usage
For more information about entries in the system registry, see RegistrySet.
Examples
This example gets the value names associated with the key Fonts and
stores them in the array ls_valuearray:
|
1 2 3 4 |
string ls_valuearray[] RegistryValues( & "HKEY_LOCAL_MACHINESoftwareMyApp.SettingsFonts",& ls_valuearray) |
See also