dOPC Client Toolkit Help file
TdOPCServerBrowser.Execute Method
C++
public: __fastcall Execute(
    boolean WithTypes = true
);
C#
public Execute(
    boolean WithTypes
);
Visual Basic
Public Sub Execute(
    WithTypes As boolean = true
)
Parameters

WithTypes
true = fills property type of TdOPCServerItem elsewhere type is set to empty []

Execute gets all OPC servers from the given ComputerName.

ServerBrowser.Computername := 'RemotePC';
ServerBrowser.Execute; //get server list from given Computer
for i := 0 to ServerBrowser.Count-1 do //for each server in list
begin
  with ServerBrowser[i] do
    Memo1.Lines.Add(format('Servername: %s ClassId %s',[ServerName,ServerClsId]));
end;
What do you think about this topic? Send feedback!
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.