MC-Basic:event.STATUS

From SoftMC-Wiki
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