beckhoff — 7.2.1.5 LangId

Event HMI 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 7.2.1.4 ResetEvent ITcEventView [ } 68] This method resets one displayed event by the given index in the list view. HRESULT ResetEvent(long nIndex); Parameters nIndex [in] the index of the event that should be reset. The index in the list view starts at the top with the index 0.

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.ResetEvent(0) End Sub 7.2.1.5 LangId ITcEventView [ } 68] This property sets and returns the language that is used for displaying the viewer, event messages and source names. You may either supply only the primary language id (e.g. ENG = 9; GER = 7) or a compete LCID (e.g. ENG = 1033; GER = 1031). The TcEventViewer will then decide what the parameter is. Setting the language id will have two effects:

on the one hand it will switch its internal string table to the specified language, on the other hand it will delegate the supplied value to the TcEventFormatter. It is important to understand that the supplied values will only be delegated to the formatter. If you specify Lang id as 7 (GER) the default formatters will lookup the string '7'. If in your resource file german is defined as '1031', the ressource will not be found - and vice versa. Property get HRESULT get_LangId([out, retval] long *pVal); Parameters pVal TcEventLogger 72 Version: 1.1