Registry

Visual Basic’s SaveSetting and GetSetting routines let a program save and restore values in the system Registry. GetSetting has this syntax:

value = GetSetting(AppName, Section, Key, Default) 

Here AppName is the name of the application. GetSetting uses this parameter to keep the values stored by this application separate from those used by other programs.

The Section parameter allows the program to categorize the values stored for the program. For example, the program might use separate sections for user configuration settings, user log in information, internationalization data, and so forth.

The Key parameter tells GetSetting the name of the value that it should fetch from the Registry. GetSetting returns Default if the value is ...

Get Visual Basic® .NET Database Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.