O'Reilly logo

Visual Basic® .NET Database Programming by Rod Stephens

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required