Difference between revisions of "MC-Basic:event.STATUS"
Line 47: | Line 47: | ||
* [[MC-Basic:task.STATUS|task.STATUS]] | * [[MC-Basic:task.STATUS|task.STATUS]] | ||
− | [[Category | + | [[Category:MC-Basic:Event Control|event.STATUS]] |
}} | }} |
Latest revision as of 09:15, 22 May 2014
This query returns the status of an event that is loaded in memory. The information returned will be in the following format:
State <state>: <description> Error <last error number> Source <line of source code> Owner: <calling task>
where <state> is one of the following:
1: Running
2: Stopped (due to IDLETASK)
4: Stopped due to run-time error
Syntax
?<event>.Status
Availability
All versions
Type
String
Range
Returned value: 1, 2, 4
Scope
Task orTerminal
Limitations
Event must be loaded in memory(after the execution of the OnEvent statement and while calling task is running).
Examples
? Event1.Status