System Functions
LNO( ) Return Line number
   
Formats LNO ( stmtref )

Where:

stmtref Statement label that the LNO function is to return the line number for.
   
Returns Line number of the statment refered to by stmtref.
   
Description The LNO( ) function is used to get the line number of a ProvideX statement. Normally it is passed a line label and will return the line number that the label is in however it can also be passed a line number. While it may seem useless to pass the LNO function a line number, passing a line number to function assures that within the program the line number reference will be adjusted during a RENUMBER directive.

For Example, consider the following statements.

0100 ! ^100 - Update Logic
0110 PRINT (TRACE) "Start section ", LNO(0100)

If you were to issue a RENUMBER the system will recognize the 0100 within the LNO function as a line number and will adjust it accordingly so that if statement 0100 moved to 0200, the value within the LNO function would be adjusted.