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



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

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