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 To uniquely identify a key, specify the list |
|
valuename |
An array variable of strings in which you want to If the array is variable size, its If the array is fixed size, it must be large |
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