omllinenumber

Returns the line number of the currently running script.

Syntax

R = omllinenumber()

Inputs

( )
The current line number is returned.
Type: string

Outputs

R
The current line number being executed.

Example

R = omllinenumber()
R = 1

Comments

If the OML script is being run from the editor, the line number is only returned if the script is saved and unmodified since being saved.