When installing most for windows 95 programs, you must modify the registry of Windows 95 to meet your own needs. For users who use VB4.0, it also provides some commands for registry operations. The following describes their usage.
1. SAVESETTING: Save the registry settings.
Usage: savesetting appname, section, key, seting
Corresponding: hkzy_current_userSoftwaremicrosoftmyappmyprogrampath (Value in path)
2. GETSETTING: Get a value from the registry.
Usage: getting appname, section, key [, default]
The default value determines the return value when no project is in the registry.
3. GETALLSETTING retrieves a group of values from the registry.
Usage: getallsetting appname, section
4. DELETESETTING deletes an application, a set of values, and a set of values.
Usage: deletesetting appname [, section [, key]
Example: strdate = date
Savesetting "regcust", "startup", "backup", strdate' creates an item if softwaremicrosoft in the registry does not have the application "REGCUST" or any of the following.
Strdate = getsetting "regcust", "startup", "backup", "0" 'returns the value in BACKUP to STRDATE. If no value is found, 0 is returned.
Deletesettings "regcust", "startup", "backup": 'delete a value.
Deletesettings "regcust", "startup" 'deletes a group of values.
Deletesettings "regcust": 'delete an application.