dOPC Client Toolkit Help file
TdOPCServer.Browser Property
C++
public: __property TdOPCBrowser Browser;
C#
public TdOPCBrowser Browser;
Visual Basic
Public Property Browser() As TdOPCBrowser

Browser contains the TdOPCBrowser object with the ability to browse through the items of an OPC DA Server.

The IdOPCBrowser interface is an optional interface. It it not necessarily supported by OPC custom interface servers. If an OPC custom interface server does not implement the browse interface, no TdOPCBrowser object will be returned.

var
  Server : TdOPCServer;
begin
  Server := TdOPCServer.Create(nil);
  Server.ServerName := 'Matrikon.OPC.Simulation';
  Server.Active := true; //connect to Server
  Server.Browser.ShowBranches(Memo1.Lines)
  Server.Active := false; //disconnect from Server
  Server.Free;
end;
What do you think about this topic? Send feedback!
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.