Registry

1.27 Registry

DeleteSetting Procedure

Microsoft.VisualBasic.Interaction


DeleteSetting(appname[, section[, key]])

 

appname required; String

The name of the application. This must be a subkey of the HKEY_CURRENT_USER\Software\VBandVBAProgramSettings registry key.

section optional; String

The name of the application key's subkey that is to be deleted. section can be a single key or a registry path separated with backslashes.

key optional; String

The name of the value entry to delete.

Description

Deletes a complete application key, one of its subkeys, or a single value entry from the Windows registry.

GetAllSettings Function

Microsoft.VisualBasic.Interaction


GetAllSettings(appname, section)

 

appname required; String

Name of the application

section required; String

Relative path from appname to 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.

GetSetting Function

Microsoft.VisualBasic.Interaction


GetSetting(appname, section, key[, default])

 

appname required; String

The name of the application

section required; String

The path from the application key to the key containing the value entries

key required; String

The name of the value entry whose value is to be returned

default optional; String

The value to return if no value can be found

Return Value

A string containing the value of the specified key; default if key, section, or appname were not found.

Description

Returns a single value from a specified section of your application's entry in the HKEY_CURRENT_USER\Software\VBandVBA ProgramSettings\ branch of the registry.

SaveSetting Procedure

Microsoft.VisualBasic.Interaction


SaveSetting(appname, section, key, setting)

 

appname required; String

The name of the application

section required; String

The name of the registry key

key required; String

The name of the value entry whose value is to be saved

setting required; String or numeric

The value to save

Description

Creates or saves an entry for a VB application in the Windows registry.

 



VB. NET Language Pocket Reference
VB.NET Language Pocket Reference
ISBN: 0596004281
EAN: 2147483647
Year: 2002
Pages: 31

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net