dOPC Client Toolkit
Close
dOPCAE.TdOPCEventServer.OnEvent

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

property OnEvent: TOndOPCEvent;
__property TOndOPCEvent OnEvent;

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;
Kassl GmbH Copyright © 2024. All rights reserved.