Difference between revisions of "MC-Basic:PROGRAMLINE"
m (1 revision) |
|||
Line 48: | Line 48: | ||
* [[Axystems:MC-Basic:task.STATUS|task.STATUS]] | * [[Axystems:MC-Basic:task.STATUS|task.STATUS]] | ||
− | + | [[Category:Axystems:MC-Basic:Task Control|PROGRAMLINE]] | |
}} | }} |
Revision as of 13:33, 11 March 2014
This query returns a Long value, indicating the current line number within the querying task. ProgramLine can only be used for the querying task, and cannot refer to another task.
Syntax
?PROGRAMLINE
Availability
Version 4.0.15 and above.
Type
Long
Range
1 to MaxLong.
Default
1 in Terminal.
Scope
Configuration, Task or Terminal
Limitations
Read Only. Task must be loaded in memory.
Examples
From Terminal:
-->?ProgramLine ‘ Should return 1
Or within Task1.prg :
Program
? ProgramLine
End Program