QuickOPC User's Guide and Reference
MultiSelect Property (_UABrowseMode)
Example 



OpcLabs.EasyOpcForms Assembly > OpcLabs.EasyOpc.UA.Forms.Browsing.ComTypes Namespace > _UABrowseMode Interface : MultiSelect Property
Determines whether the dialog allows the user to select multiple nodes as output.
Syntax
'Declaration
 
Property MultiSelect As Boolean
'Usage
 
Dim instance As _UABrowseMode
Dim value As Boolean
 
instance.MultiSelect = value
 
value = instance.MultiSelect
bool MultiSelect {get; set;}
property bool MultiSelect {
   bool get();
   void set (    bool value);
}
Example

COM

Rem This example shows how to let the user browse for multiple OPC-UA nodes.

Option Explicit

Const DialogResult_OK = 1

Const UAElementType_Host = 1

Dim BrowseDialog: Set BrowseDialog = CreateObject("OpcLabs.EasyOpc.UA.Forms.Browsing.UABrowseDialog")
BrowseDialog.InputsOutputs.CurrentNodeDescriptor.EndpointDescriptor.Host = "opcua.demo-this.com"
BrowseDialog.Mode.AnchorElementType = UAElementType_Host
BrowseDialog.Mode.MultiSelect = True


Dim dialogResult: dialogResult = BrowseDialog.ShowDialog
WScript.Echo dialogResult

If dialogResult <> DialogResult_OK Then
    WScript.Quit
End If

' Display results
Dim SelectionElements: Set SelectionElements = BrowseDialog.Outputs.SelectionElements
Dim i: For i = 0 To SelectionElements.Count - 1
    Dim Element: Set Element = SelectionElements(i)
    WScript.Echo "SelectionElements(" & i & "): " & Element.NodeElement
Next
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