Difference between revisions of "MC-Basic:task.NUMBEROFLOOPS"
(Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= ?''<task>''.NumberOfLoops ?NumberOfLoops |AVAILABILITY= from 0.4.0.22 |DESCRIPTION= This query returns a Long value, indicating the number o…') |
|||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|MC-Basic:task.NUMBEROFLOOPS}} | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
Line 4: | Line 5: | ||
|SYNTAX= | |SYNTAX= | ||
− | ?'' | + | ?<''task''>.NumberOfLoops |
?NumberOfLoops | ?NumberOfLoops | ||
Line 54: | Line 55: | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[MC-Basic:STARTTASK|STARTTASK]] |
− | |||
+ | [[Category:MC-Basic:Task Control|task.NUMBEROFLOOPS]] | ||
}} | }} |
Latest revision as of 08:02, 2 May 2017
Language: | English • 中文(简体) |
---|
This query returns a Long value, indicating the number of task loop left
May be queried as from another task context , as from the same task.
In case of query from the same task the task name is unnecessary.
Syntax
?<task>.NumberOfLoops
?NumberOfLoops
Availability
from 0.4.0.22
Type
Long
Range
1 to MaxLong.
Scope
Task or Terminal
Limitations
Read Only .Task must be loaded in memory
Examples
--> StartTask Task1.prg Priority=3 NumberOfLoops=3 ‘Run 3 times
-->?Task1.prg.NumberOfLoops
-->2
Or from the Task1.prg :
program
? NumberOfLoops ‘ should return 2
end program