Returns the current page number in an output I/O device.
Syntax:
Page(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:
A numeric value
Example:
Page(1,1) returns the current page number in the first output device of the immediate parent task.