Overview | Statement List


指针控制

Synopsis

GETL(file#)

Description

This statement returns the line number which precedes the current line pointer position in the specified file.

Parameters

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.

NOTE: If the line pointer is at the first line in the file, the value returned will be zero.

Example

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.

 


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.