MC-Basic:event.STATUS

From SoftMC-Wiki
Revision as of 09:15, 22 May 2014 by Miborich (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

See Also