Name
GetAllSettings Function
Class
Microsoft.VisualBasic.Interaction
Syntax
GetAllSettings(appname, section)-
appname Use: Required
Data Type: String
Name of the application
-
section Use: Required
Data Type: String
Relative path from
appnameto the key containing the settings to retrieve
Return Value
An object containing a two-dimensional array of strings
Description
Returns the registry value entries and their corresponding values for the application
Rules at a Glance
GetAllSettingsworks exclusively with the subkeys ofHKEY_CURRENT_USER\Software\ VBand VBA ProgramSettings.The elements in the first dimension of the array returned by
GetAllSettingscontain the value entry names.The elements in the second dimension of the array returned by
GetAllSettingscontain the values for the respective value entries.The two-dimensional array returned by
GetAllSettingsis based at 0 (as are all arrays) so the first value entry name is referenced using (0,0).A call to
GetAllSettingswill return only the value entry names and data belonging to the final registry key specified by thesectionargument. If that key itself has one or more subkeys, their data will not be retrieved by the function.If either
appnameorsectiondo not exist,GetAllSettingswill return an uninitialized Object.
Programming Tips and Gotchas
GetAllSettingsis a function that was developed to retrieve data from initialization files in 16-bit environments and to retrieve data from the registry under Windows 9x and Windows NT. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access