

'Declaration<CLSCompliantAttribute(False)> <ComVisibleAttribute(True)> <GuidAttribute("68798837-AA6C-4412-B9A2-F069BF8BE160")> <InterfaceTypeAttribute(ComInterfaceType.InterfaceIsDual)> Public Interface _UADataDialog
'UsageDim instance As _UADataDialog
[CLSCompliant(false)] [ComVisible(true)] [Guid("68798837-AA6C-4412-B9A2-F069BF8BE160")] [InterfaceType(ComInterfaceType.InterfaceIsDual)] public interface _UADataDialog
[CLSCompliant(false)] [ComVisible(true)] [Guid("68798837-AA6C-4412-B9A2-F069BF8BE160")] [InterfaceType(ComInterfaceType.InterfaceIsDual)] public interface class _UADataDialog
This member or type is for use from COM. It is not meant to be used from .NET or Python. Refer to the corresponding .NET member or type instead, if you are developing in .NET or Python.
// This example shows how to let the user browse for an OPC-UA data node (a Data Variable or a Property). // // Find all latest examples here: https://www.doc-that.com/files/onlinedocs/OPCLabs-ConnectivityStudio/Latest/examples.html . // Missing some example? Ask us for it on our Online Forums, https://forum.opclabs.com/forum/index ! You do not have to own // a commercial license in order to use Online Forums, and we reply to every post. #include "stdafx.h" // Includes "QuickOpc.h", and other commonly used files #include "ShowDialog.h" namespace _UADataDialog { void ShowDialog::Main() { // Initialize the COM library CoInitializeEx(NULL, COINIT_MULTITHREADED); { // _UADataDialogPtr DataDialogPtr(__uuidof(UADataDialog)); // DataDialogPtr->EndpointDescriptor->UrlString = //L"http://opcua.demo-this.com:51211/UA/SampleServer"; L"opc.tcp://opcua.demo-this.com:51210/UA/SampleServer"; DataDialogPtr->UserPickEndpoint = true; // DialogResult dialogResult = DataDialogPtr->ShowDialog(NULL); // Display results if (dialogResult == 1/*OK*/) { _tprintf(_T("%d\n"), dialogResult); _tprintf(_T("EndpointDescriptor: %s\n"), (LPCTSTR)CW2CT(DataDialogPtr->EndpointDescriptor->ToString)); _tprintf(_T("NodeElement: %s\n"), (LPCTSTR)CW2CT(DataDialogPtr->NodeElement->ToString)); } } // Release all interface pointers BEFORE calling CoUninitialize() CoUninitialize(); } }
// This example shows how to let the user browse for an OPC-UA data node // (a Data Variable or a Property). // // Find all latest examples here: https://www.doc-that.com/files/onlinedocs/OPCLabs-ConnectivityStudio/Latest/examples.html . // OPC client and subscriber examples in Object Pascal (Delphi) on GitHub: https://github.com/OPCLabs/Examples-ConnectivityStudio-OP . // Missing some example? Ask us for it on our Online Forums, https://forum.opclabs.com/forum/index ! You do not have to own // a commercial license in order to use Online Forums, and we reply to every post. class procedure ShowDialog.Main; var DataDialog: OpcLabs_EasyOpcForms_TLB._UADataDialog; DialogResult: System_Windows_Forms_TLB.DialogResult; begin // Instantiate the dialog object DataDialog := CoUADataDialog.Create; DataDialog.EndpointDescriptor.UrlString := //'http://opcua.demo-this.com:51211/UA/SampleServer'; //'https://opcua.demo-this.com:51212/UA/SampleServer/'; 'opc.tcp://opcua.demo-this.com:51210/UA/SampleServer'; DataDialog.UserPickEndpoint := True; DialogResult := DataDialog.ShowDialog(nil); WriteLn(DialogResult); if DialogResult <> DialogResult_OK then Exit; // Display results WriteLn('EndpointDescriptor: ', DataDialog.EndpointDescriptor.ToString); WriteLn('NodeElement: ', DataDialog.NodeElement.ToString); end;
REM This example shows how to let the user browse for an OPC-UA data node (a Data Variable or a Property). REM REM Find all latest examples here: https://www.doc-that.com/files/onlinedocs/OPCLabs-ConnectivityStudio/Latest/examples.html . REM OPC client and subscriber examples in Visual Basic on GitHub: https://github.com/OPCLabs/Examples-ConnectivityStudio-VB . REM Missing some example? Ask us for it on our Online Forums, https://forum.opclabs.com/forum/index ! You do not have to own REM a commercial license in order to use Online Forums, and we reply to every post. Private Sub ShowDialog_Main_Command_Click() OutputText = "" Dim DataDialog As New UADataDialog DataDialog.endpointDescriptor.UrlString = "opc.tcp://opcua.demo-this.com:51210/UA/SampleServer" DataDialog.UserPickEndpoint = True Dim DialogResult DialogResult = DataDialog.ShowDialog OutputText = OutputText & DialogResult & vbCrLf If DialogResult <> 1 Then ' OK Exit Sub End If ' Display results OutputText = OutputText & "EndpointDescriptor: " & DataDialog.endpointDescriptor & vbCrLf OutputText = OutputText & "NodeElement: " & DataDialog.NodeElement & vbCrLf End Sub
Rem This example shows how to let the user browse for an OPC-UA data node (a Data Variable or a Property). Rem Rem Find all latest examples here: https://www.doc-that.com/files/onlinedocs/OPCLabs-ConnectivityStudio/Latest/examples.html . Rem OPC client and subscriber examples in VBScript on GitHub: https://github.com/OPCLabs/Examples-ConnectivityStudio-VBScript . Rem Missing some example? Ask us for it on our Online Forums, https://forum.opclabs.com/forum/index ! You do not have to own Rem a commercial license in order to use Online Forums, and we reply to every post. Option Explicit Const DialogResult_OK = 1 Dim DataDialog: Set DataDialog = CreateObject("OpcLabs.EasyOpc.UA.Forms.Browsing.UADataDialog") DataDialog.EndpointDescriptor.UrlString = "opc.tcp://opcua.demo-this.com:51210/UA/SampleServer" DataDialog.UserPickEndpoint = True Dim dialogResult: dialogResult = DataDialog.ShowDialog WScript.Echo dialogResult If dialogResult <> DialogResult_OK Then WScript.Quit End If ' Display results WScript.Echo "EndpointDescriptor: " & DataDialog.EndpointDescriptor WScript.Echo "NodeElement: " & DataDialog.NodeElement