Event HMI 7.2.1.11 DeleteConnection ITcEventView [ } 68] This method removes a connection a remote TcEventLogger on another PC that was established before by AddConnection [ } 77] . HRESULT DeleteConnection(BSTR strComputerName); Parameters strComputerName [in] BSTR string that holds the name of the remote PC the EventView wants to disconnect from.
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.DeleteConnection("BeltPC1") End Sub Remarks 7.2.1.12 DisplayComputerName ITcEventView [ } 68] This property enables or disables the column that displays the computer name or returns the state. Property get HRESULT get_DisplayComputerName([out, retval] VARIANT_BOOL*pVal); Parameters pVal [out, retval] pointer to VARIANT_BOOL variable that receives the visible state of the list view column Computer Name.
It's visible if the variable is VARINAT_TRUE (TRUE) and invisible if the variable is VARIANT_FALSE (FALSE). Return Values S_OK Function was successfully called E_POINTER pVal was no valid pointer TcEventLogger 78 Version: 1.1