dOPC Client Toolkit Help file
TdOPCEventServer.OnEvent Event
C++
__published: __property TOndOPCEvent OnEvent;
C#
event TOndOPCEvent OnEvent;
Visual Basic
Event OnEvent As TOndOPCEvent

OnEvent is generated when the server receives a new event notification.

This event is only meant for logging affairs or if you don't want to use the Events collection. It is recommended to use the OnEndUpdate event to show received event notifications.

procedure TForm1.dOPCEventServer1Event(Sender: TObject; Event: TdOPCEvent);
begin
  Memo1.Lines.Insert(0,(format('%s %s (%s)',
    [DateTimetoStr(Event.Time),Event.Msg,Event.Source])));
end;
What do you think about this topic? Send feedback!
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.