OPC Studio User's Guide and Reference
SetControlValue Method (IValueControl)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComponentModel Namespace > IValueControl Interface : SetControlValue Method
The new current value of the control.

The value of this parameter can be null (Nothing in Visual Basic).

Sets the current value of the control.
Syntax
'Declaration
 
Sub SetControlValue( _
   ByVal value As Object _
) 
'Usage
 
Dim instance As IValueControl
Dim value As Object
 
instance.SetControlValue(value)
void SetControlValue( 
   object value
)
void SetControlValue( 
   Object^ value
) 

Parameters

value
The new current value of the control.

The value of this parameter can be null (Nothing in Visual Basic).

Remarks

The control's value can be null even in controls that are not nullable (their IsNullable is false).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also