Returns the current line number in an output I/O device.
Syntax:
Line(generation,device)
Parameters:
generation: A number that represents the task's hierarchic position in the runtime task tree. 0 represents the current task, 1 its immediate ancestor, and so on.
device: A number that represents the sequence number of the output device in the specified task.
Returns:
Current line number in the output device. In text based output, it returns the text line. In a graphical output, it returns the current print position using the current units of measurement specified in the printed form.
Example:
Line(1,1) returns the current line number in the first output device of the immediate parent.