VB4.0 commands for registry operations

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.