Difference between revisions of "MC-Basic:task.TASKID"
m (Miborich moved page Axystems:MC-Basic:task.TASKID to MC-Basic:task.TASKID: Global renaming of Axystems: namespace into (Main):) |
|||
Line 54: | Line 54: | ||
* [[MC-Basic:PROGRAMNAME|PROGRAMNAME]] | * [[MC-Basic:PROGRAMNAME|PROGRAMNAME]] | ||
− | [[Category | + | [[Category:MC-Basic:Task Control|task.TASKID]] |
}} | }} |
Revision as of 09:17, 22 May 2014
This query returns a Long value, indicating the unique task identification number .
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>.TASKID
?TASKID
Availability
Version 4.0.22 and above.
Type
Long
Scope
Task or Terminal
Limitations
Read Only .Task must be loaded in memory
Examples
-->?Task1.prg.TaskID hex
-->0x7B6CEE0
Or from the Task1.prg :
program
' ? TaskID hex ‘ should return 0x7B6CEE0
end program