SftOptions 1.0

SftOptsIO.OptionValue Property

Softel vdm, Inc.

Defines the currently saved property value.

Syntax       

Get

VB.NET

Value = object.OptionValue(ByVal Name As String)  As String

VB

Value = object.OptionValue(ByVal Name As String)  As String

C#.NET

string Value = object.get_OptionValue(string Name);

VC++

_bstr_t Value = object->OptionValue[_bstr_t Name];
_bstr_t Value = object->GetOptionValue(_bstr_t Name);

C

HRESULT object->get_OptionValue(BSTR Name, BSTR* Value);

Delphi

Value := object.OptionValue[Name : WideString]   : WideString;

Put

VB.NET

object.set_OptionValue(ByVal Name As String, ByVal Value As String)

VB

object.OptionValue(ByVal Name As String) = Value  As String

C#.NET

void object.set_OptionValue(string Name, string Value);

VC++

_bstr_t object->OptionValue[_bstr_t Name] = Value;
void object->PutOptionValue(_bstr_t Name, _bstr_t Value);

C

HRESULT object->put_OptionValue(BSTR Name, BSTR Value);

Delphi

object.OptionValue[Name : WideString] := Value   : WideString;

object

A SftOptsIO object.

Name

Defines the name (see SftOptionsEntry.Name) of the entry to be retrieved.

Value

Defines the currently saved property value.

Comments

The OptionValue property defines the currently saved property value (please see the SftOptionsIO.OptionValue property for complete information).

The SftOptsIO control is used by an application to retrieve (or set) option values.  The SftOptsIO control does not offer a user interface.  The SftOptions control is used to provide a user interface to allow the end-user to modify option settings.

The SftOptsIO control offers simplified Registry and INI file I/O to retrieve or set option values.

The SftOptsIO.OptionValue property is identical to the SftOptionsIO.OptionValue property.

Example

Dim CheckBoxValue As String
SftOptsIO1.Registry = "USR:Software\Softelvdm\TestData\FirstSample"
CheckBoxValue = SftOptsIO1.OptionValue("Cb1")

See Also  SftOptsIO Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2002 - Softel vdm, Inc. - www.softelvdm.com