Hide

SftOptions 1.0 - ActiveX Options Control

Display
Print

Registry And INI File Access

The SftOptions control is used to display option settings to the end-user and to allow modification of the settings. All options are loaded and saved by the SftOptions control's Load and Save methods.

The SftOptsIO control is used by an application to retrieve (and set) options values without a user interface.

Both the SftOptions and the SftOptsIO controls must be defined to access the same Registry or INI file, by setting their Registry and File properties (see SftOptionsIO.File, SftOptsIO.File and SftOptionsIO.Registry, SftOptsIO.Registry).

An application can retrieve settings using the SftOptsIO control:

Dim CheckBoxValue As String
CheckBoxValue = SftOptsIO1.OptionValue("InterestingOption")

When deploying an application, typically using a setup program, the Registry and INI files may need to be initialized. The DefaultValue properties of the entries in a SftOptions control reflect the default values that would be set in response to the Restore or RestoreAll methods. These default values are not automatically installed when deploying an application. If the SftOptions control has not yet saved the property settings, the "SftOptions_Initialized" option has not yet been set to "1" (see Save). This option could be tested by an installation program to initialize option settings in the Registry or INI file, possibly even using a SftOptions control.


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.