dOPC Client Toolkit Help file
TdOPCSvr.Active Property
C++
__published: __property boolean Active;
C#
boolean Active;
Visual Basic
Property Active() As boolean

Active connects or disconnects from a OPC DA Server.

This value must be set to True to establish a connection to a server.

var
  Server : TdOPCServer;
begin
  Server := TdOPCServer.Create(nil);
  Server.ServerName := 'Matrikon.OPC.Simulation';
  Server.Active := true; //connect to Server

   // do something...

  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.