SortMode
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.
Return Values
S_OK Function was successfully called E_POINTER pVal was no valid pointer
|
Parameters
newVal
[in] a long variable set holds the new sort mode. Sort modes are defined as enum TC_SORTMODE.
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()
TcEventView1.SortMode = SORT_BY_EVT_ID_DESCENDING
End Sub
See also