Difference between revisions of "MC-Basic:task.NUMBEROFLOOPS"

From SoftMC-Wiki
Jump to: navigation, search
m (Miborich moved page Axystems:MC-Basic:task.NUMBEROFLOOPS to MC-Basic:task.NUMBEROFLOOPS: Global renaming of Axystems: namespace into (Main):)
Line 56: Line 56:
 
* [[MC-Basic:STARTTASK|STARTTASK]]
 
* [[MC-Basic:STARTTASK|STARTTASK]]
  
[[Category:Axystems:MC-Basic:Task Control|task.NUMBEROFLOOPS]]
+
[[Category:MC-Basic:Task Control|task.NUMBEROFLOOPS]]
 
}}
 
}}

Revision as of 09:17, 22 May 2014

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

See Also