Syntax |
SaveSetting appname, section, key, setting |
|
Description |
Saves the value of the specified key in the system registry. The following table describes the named parameters to the SaveSetting statement: |
|
|
Parameter |
Description |
|
appname |
String expression indicating the name of the application whose setting will be modified. |
|
section |
String expression indicating the name of the section whose setting will be modified. |
|
key |
String expression indicating the name of the setting to be modified. |
|
setting |
The value assigned to key. |
Example |
'The following example adds two entries to the Windows registry 'if run under Win32 or to NEWAPP.INI on other platforms, 'using the SaveSetting statement. It then uses DeleteSetting 'to remove these entries. Sub Main() SaveSetting appname := "NewApp", section := "Startup", _ key :="Height", setting := 200 SaveSetting appname := "NewApp", section := "Startup", _ key :="Width", setting := 320 DeleteSetting "NewApp" 'Remove NewApp key from registry End Sub |
|
See Also |
GetAllSettings (function), DeleteSetting (statement), GetSetting (function) |
|
Note |
Under Win32, this statement operates on the system registry. All settings are saved to the following entry in the system registry: HKEY_CURRENT_USER\Software\BasicScript Program Settings\appname\section\key On this platform, the appname parameter is not optional. |
S |