OnLoggedEventsCleared
This event method is called on all clients that implement and connect this event interface when all logged events are cleared. This method is called after a call of ITcEventLog::ClearLoggedEvents or from the PLC function block ADSCLEAREVENTS with the iMode set to TCEVENTLOGIOFFS_CLEARLOGGED or TCEVENTLOGIOFFS_CLEARALL.
HRESULT OnLoggedEventsCleared();
Parameters
S_OK
Function was successfully called
Visual Basic sample code
Option Explicit
Dim WithEvents evtLogger As TCEVENTLOGGERLib.TcEventLog
' form load
Private Sub Form_Load()
' get the one and only event logger
Set evtLogger = New TcEventLog
End Sub
' event method
Private Sub evtLogger_OnLoggedEventsCleared()
Debug.Print "Logged Event are cleared!"
End Sub