Difference between revisions of "MC-Basic:PROGRAMLINE"

From SoftMC-Wiki
Jump to: navigation, search
m (Miborich moved page Axystems:MC-Basic:PROGRAMLINE to MC-Basic:PROGRAMLINE: Global renaming of Axystems: namespace into (Main):)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:PROGRAMLINE}}
 +
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 46: Line 48:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:task.STATUS|task.STATUS]]
+
* [[MC-Basic:task.STATUS|task.STATUS]]
  
[[Category:Axystems:MC-Basic:Task Control|PROGRAMLINE]]
+
[[Category:MC-Basic:Task Control|PROGRAMLINE]]
 
}}
 
}}

Latest revision as of 08:42, 10 April 2017

Language: English  • 中文(简体)‎

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

See Also