Difference between revisions of "LINENO()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to return number of the next line
 
Function to return number of the next line
 
  
 
==Syntax==
 
==Syntax==
 
LINENO()
 
LINENO()
 
  
 
==See Also==
 
==See Also==
[[MESSAGE]], [[MESSAGE()]], [[PROCLINE()]], [[PROGRAM()]], [[RESUME]], [[SET DEBUG]], [[SET DOHISTORY]], [[SET ECHO]], [[SET HISTORY]], [[SUSPEND]]
+
[[PROCLINE()]], [[PROGRAM()]]
 
+
  
 
==Description==
 
==Description==
 
The LINENO() function returns the number of the next command line to be executed in a program, procedure or UDF.  This function can be used with ON ERROR routines to return the line number causing the error.
 
The LINENO() function returns the number of the next command line to be executed in a program, procedure or UDF.  This function can be used with ON ERROR routines to return the line number causing the error.
 
  
 
==Example==
 
==Example==
Line 21: Line 17:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Error Handling and Debugging]]
 
[[Category:Error Handling and Debugging]]
 
[[Category:Error Handling and Debugging Functions]]
 
[[Category:Error Handling and Debugging Functions]]

Revision as of 06:22, 10 February 2012

Purpose

Function to return number of the next line

Syntax

LINENO()

See Also

PROCLINE(), PROGRAM()

Description

The LINENO() function returns the number of the next command line to be executed in a program, procedure or UDF. This function can be used with ON ERROR routines to return the line number causing the error.

Example

m_lineno = lineno()
dialog box "The line is # &m_lineno."