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



OpcLabs.BaseLibForms Assembly > OpcLabs.BaseLib.Forms Namespace > UserValueControl Class : 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
 
Public Overridable Sub SetControlValue( _
   ByVal value As Object _
) 
'Usage
 
Dim instance As UserValueControl
Dim value As Object
 
instance.SetControlValue(value)
public virtual void SetControlValue( 
   object value
)
public:
virtual 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 OpcLabs.BaseLib.ComponentModel.IValueControl.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