API [out, retval] Pointer to a BOOL value that receives the confirmation flag. Itґs false if the value is 0, itґs true if the value is not equal to 0. 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 MustConfirm flag Dim mustConf As Long mustConf = evt.mustConfirm If mustConf 0 Then Debug.Print "Must Confirmed!" Else Debug.Print "Must Not Confirmed!" End If Remarks The return value is not from the type VARIANT_BOOL the Visual Basic type BOOLEAN. In Visual Basic it occurs as a long value. We must check if it's not equal 0 if the flag is set. 9.3.8.18 DateConfirmed ITcEvent [ } 157] The property returns the event confirmation date and time.
The event confirmation date and time is the time when the event was confirmed from the PLC function block by setting EventQuit=TRUE (or other ADS device) or the from a call to ITcEvent [ } 157] ::. Confirm [ } 167] HRESULT DateConfirmed([out, retval] DATE *pVal); Parameters pVal [out, retval] Pointer to a long value that receives the event confirmation date and time. Return Values S_OK Function was successfully called E_POINTER pVal was no valid pointer. TcEventLogger 170 Version: 1.1