GETL(file#)
This statement returns the line number which precedes the current line pointer position in the specified file.
Parameter |
Description |
file# |
The number of the scratch file in which the line pointer position is required. Ten scratch file areas are available, therefore, the specified number must be between 1 and 10.
|
This example demonstrates the use of the GETL statement. The current position of the file pointer is assigned to the numeric variable N.
N=GETL(1)
If the file pointer was at line number twenty, N would now equal 10.