CreateEx
![CreateEx 1:](Images/png/5027123467__Web.png)
This method creates a message instance in the EventLogger from an event definition.
Syntax
METHOD PUBLIC CreateEx : HRESULT
VAR_INPUT
stEventEntry : TcEventEntry;
ipSourceInfo : I_TcSourceInfo := 0;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
stEventEntry | Event definition. | |
ipSourceInfo | Interface pointer to the source information. Default source information is created if no interface pointer is transferred. |
Return value
Name | Type | Description |
---|---|---|
CreateEx | HRESULT | Returns S_OK if the method call was successful, otherwise an HRESULT as the error code. |