API Dim evt As TcEvent Set evt = evtLogger.GetLastEvent ' get the event id Dim id As Long id = evt.InvokeId Debug.Print id 9.3.8.5 Class ITcEvent [ } 157] The property returns the class of the alarm, like alarm, warning, hint. The alarm classes are described through the enum TcEventClass [ } 179] . HRESULT Class([out, retval] long *pVal); Parameters pVal [out, retval] pointer to a long value that receives the event class. Return Values S_OK Function was successfully called E_POINTER pVal was no valid pointer.
Visual Basic sample code ' get the one and only event logger Dim evtLogger As TCEVENTLOGGERLib.TcEventLog Set evtLogger = New TCEVENTLOGGERLib.TcEventLog ' get the most recent active event Dim evt As TcEvent Set evt = evtLogger.GetLastEvent ' get the event class Dim class As TcEventClass class = evt.Class 9.3.8.6 Priority ITcEvent [ } 157] The property returns the priority of the event. The event priority is described through the enum TcEventPriority [ } 161] . HRESULT Priorty([out, retval] long *pVal); Parameters pVal [out, retval] Pointer to a long value that receives the event priority. Return Values S_OK TcEventLogger 161 Version: 1.1