System::ReportEvent
System::ReportEvent is a method that will send a message to the system event log, or if executing in the ObjectDatabase++ GUI Editor, the message log at the bottom of the frame. If the tscript is running on native Windows, then the message will be sent to Event Viewer application, and on Linux, to the syslog file.
public System::ReportEvent( WString Message, Integer Type = System::EVENTLOG_INFORMATION );
Parameters
Message | an Unicode WString containing the message to be displayed. |
Type | will default to System::EVENTLOG_INFORMATION. |
Return Values
None.
Remarks
Example Use
- TScript
main(){ System::ReportEvent(u"Hello to all, " u"I have made it to this position in the script"); }
Since
TScript Version 1.9
Also See
Systen::MessageBox, CTScript::SetParameterListen All
Comments (0)