Hide

SftOptions 1.0 - ActiveX Options Control

Display
Print

SftOptionsEntry.DefaultValue Property

Defines the entry's default value.

Syntax

Get

VB.NETString = object.DefaultValue As String
VBString = object.DefaultValue As String
C#.NETstring String = object.DefaultValue;
VC++_bstr_t String = object->DefaultValue;
_bstr_t String = object->GetDefaultValue();
CHRESULT object->get_DefaultValue(BSTR* String);

Put

VB.NETobject.DefaultValue = String As String
VBobject.DefaultValue = String As String
C#.NETstring object.DefaultValue = String;
VC++_bstr_t object->DefaultValue = String;
void object->PutDefaultValue(_bstr_t String);
CHRESULT object->put_DefaultValue(BSTR String);

object

A SftOptionsEntry object.

String

Defines the entry's default value.

Comments

The DefaultValue property defines the entry's default value. For possible values based on the entry type, please see the Entry.Value property.

The Entry.Restore and RestoreAll methods use the DefaultValue property to set the entry's Value property.

The DefaultValue property is used to initialize entries when no option information has been previously saved in the location defined by IO.File or IO.Registry

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.

See Also SftOptionsEntry Object | Object Hierarchy


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