
310
|
Chapter 12: The Language Reference
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
GetAllSettings Function
Class
Microsoft.VisualBasic.Interaction
Syntax
Dim result(,) As String = GetAllSettings(appname, section)
appname (required; String)
The name of the application branch to be retrieved.
section (required; String)
The name of the application’s subkey that is to be retrieved. This can be a single
key or a relative registry path, with path components separated by backslashes.
Description
The GetAllSettings function returns the registry value entry names and their corre-
sponding values for the specified application and section, all as a two-dimensional
array. For each entry in the first dimension, entry (x, 0) contains the name, and entry
(x, 1) contains its value.
Usage at a Glance
• GetAllSettings works exclusively with the subkeys of HKEY_CURRENT_USER\
Software\VB and VBA ProgramSettings
.
• section is a relative path (similar to that used to describe the directories on a hard
drive) used to navigate from the application key to the subkey to be accessed. For
example, to access the
HKEY_CURRENT_USER\Software\VB and VBA ProgramSettings\
RegTester\BranchOne\BranchTwo
section, you would use:
GetAllSettings("RegTester", "BranchOne\BranchTwo")
• A call to GetAllSettings will return only the value entry names and data
belonging to the final ...