Difference between revisions of "MC-Basic:CONTINUETASK"
(Created page with '{{MC-Basic |SHORT FORM= CTas |SYNTAX= ContinueTask ''<task>'' |AVAILABILITY= All versions 3.0 |DESCRIPTION= This command continues an idle task from the point at which it was …') |
|||
(12 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|MC-Basic:CONTINUETASK}} | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
Line 4: | Line 5: | ||
|SYNTAX= | |SYNTAX= | ||
− | ContinueTask ''<task>'' | + | ContinueTask <''task''> <br> |
− | + | From 0.4.14.11 and 0.4.15.3 <br> | |
+ | ContinueTask <''task''> <''task''> programline=<''line''> <br> | ||
|AVAILABILITY= | |AVAILABILITY= | ||
All versions 3.0 | All versions 3.0 | ||
Line 17: | Line 19: | ||
|TYPE= | |TYPE= | ||
− | '' | + | <''task''>: File specification |
|RANGE= | |RANGE= | ||
− | '' | + | <''task''>: Name of a task that is loaded in memory <br> |
+ | <''line''>: Execution will be resumed from "programline". Can be used to jump over or re-run a block of code. | ||
|UNITS= | |UNITS= | ||
Line 32: | Line 35: | ||
|LIMITATIONS= | |LIMITATIONS= | ||
− | Write | + | *Write only. |
+ | *The task must be loaded in memory.<br> | ||
+ | Option "line" cannot be used to jump in/out from subrotines, functions, events,OnEror, On SystemError or try-catch blocks. | ||
|EXAMPLE= | |EXAMPLE= | ||
− | ContinueTask Task1.prg | + | ContinueTask Task1.prg<br> |
+ | From 0.4.14.11 and 0.4.15.3 <br> | ||
+ | ContinueTask Task1.prg programline = 10<br> | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[MC-Basic:KILLTASK|KILLTASK]] |
− | * [[ | + | * [[MC-Basic:LOAD|LOAD]] |
− | * [[ | + | * [[MC-Basic:STARTTASK|STARTTASK]] |
− | |||
+ | [[Category:MC-Basic:Task Control|CONTINUETASK]] | ||
}} | }} |
Latest revision as of 07:35, 3 May 2017
Language: | English • 中文(简体) |
---|
This command continues an idle task from the point at which it was stopped (idled), or continues task execution after a break point is reached.
If a run time error occurs, CONTINUETASK retries the line that caused the error. The error must be corrected before the task continues.
ContinueTask command wakes up the task from Sleep
Short form
CTas
Syntax
ContinueTask <task>
From 0.4.14.11 and 0.4.15.3
ContinueTask <task> <task> programline=<line>
Availability
All versions 3.0
Type
<task>: File specification
Range
<task>: Name of a task that is loaded in memory
<line>: Execution will be resumed from "programline". Can be used to jump over or re-run a block of code.
Scope
Task or Terminal
Limitations
- Write only.
- The task must be loaded in memory.
Option "line" cannot be used to jump in/out from subrotines, functions, events,OnEror, On SystemError or try-catch blocks.
Examples
ContinueTask Task1.prg
From 0.4.14.11 and 0.4.15.3
ContinueTask Task1.prg programline = 10