MC-Basic:task.STATUS

From SoftMC-Wiki
Revision as of 16:01, 13 December 2010 by Arwiebe (talk | contribs) (Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= ?''<task>''.Status |AVAILABILITY= All versions |DESCRIPTION= This query returns the status of a task that is loaded in memory. The informatio…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This query returns the status of a task 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>

where <state> is one of the following:

1: Running

2: Stopped (due to IDLETASK)

4: Stopped due to run-time error

7: Ready (after LOAD)

9:  Task Kill Start .

10: Killed (after KILLTASK or END PROGRAM)

Syntax

?<task>.Status

Availability

All versions

Type

String

Range

Returned value: 1, 2, 4, 7, 9, 10

Scope

Terminal

Limitations

Task must be loaded in memory

Examples

?MyTask.prg.Status

See Also