$LineNumber

Syntax

$LineNumber

Return Value

The line number (int) of the current command in the currently executing program. It cannot be reset by an application program.

Comments

For commands that are continued over more than one line, $LineNumber refers to the last line of the command.

 

Related Topics