GetOPCServers method
Description | Returns the names (ProgID's) of the registered OPC Servers. Use one of these ProgIDs in the Connect method. The names are returned as an array of strings. |
Syntax | GetOPCServers (Optional Node As Variant) As VariantNode — String specifying the machine name of the remote node to get the list of registered OPC servers. |
Remarks | The use of a node name makes use of DCOM to access another computer. Acceptable node names are UNC names ("Server"), or DNS names ("server.com", "www.vendor.com", or "180.151.19.75"). |
Example | Dim vAllOPCServers As Variant '/* Get list of server names vAllOPCServers = MyOPCServer.GetOPCServers '/* Add server names to listbox For i = LBound(vAllOPCServers) To UBound(vAllOPCServers) lstServers.AddItem vAllOPCServers(i) Next 'i |
Provide Feedback