#CurrentLine

System variable - Logfile management.

The #CurrentLine system variable returns the current line number within the currently running script.

Syntax

var=#CurrentLine

Return value

var, integer, current line number within this script.

Example

 

var = #CurrentLine

var$=str$(var)

msgbox(var$)