OPC Studio User's Guide and Reference
GetControlValue Method (AutomaticValueControl)



OpcLabs.BaseLibForms Assembly > OpcLabs.BaseLib.Forms Namespace > AutomaticValueControl Class : GetControlValue Method
Gets the current value of the control.
Syntax
'Declaration
 
Public Overrides NotOverridable Function GetControlValue() As Object
'Usage
 
Dim instance As AutomaticValueControl
Dim value As Object
 
value = instance.GetControlValue()
public override object GetControlValue()
public:
Object^ GetControlValue(); override 

Return Value

Returns the current value of the control.

This method can return 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