ConfirmEvent

ITcEventView

This method confirms one displayed event by the given index in the list view and confirmation code.

HRESULT ConfirmEvent(long nIndex, long nCode);

Parameters

nIndex

[in] the index of the event that should be confirmed. The index in the list view starts at the top with the index 0.

nCode

[in] The confirmation code that is described through the Enum TcEventConCodes

Return Values

S_OK

Function was successfully called

Visual Basic sample code

Option Explicit

' add the Beckhoff TcEvent View Library to the components
' place a TcEventView on the form, and assign the name TcEventView1

Private Sub Form_Load()
 Call TcEventView1.ConfirmEvent(0, 0)
End Sub