Event HMI Return Values S_OK Function was successfully called E_INVALIDARG Either the selected filter type is invalid or the supplied Vartype is not convertable to the required type. 7.2.1.49 SortMode ITcEventView [ } 68] This property returns or sets the current selected sort order. This is what also happens when clicken the column header. If you disable the column header, or want to initialize the Viewer with a specific sort mode use this property. Property get HRESULT get_SortMode([out, retval] long *pVal); Parameters pVal [out, retval] pointer to a long variable that receives the actual sort mode. Sort modes are defined as enum TC_SORTMODE [ } 114] .
Return Values S_OK Function was successfully called E_POINTER pVal was no valid pointer Property set HRESULT put_SortMode([in] long newVal); Parameters newVal [in] a long variable set holds the new sort mode. Sort modes are defined as enum TC_SORTMODE [ } 114] . 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 TcEventLogger 110 Version: 1.1 Filter Vartype TCEVENTVIEW FILTER SOURCENAME _ _ String (VT BSTR) _