DisplayPage (display new page)

Top  Previous  Next

 

DisplayPage( [line number] )

DisplayPage

Displays a new page from the file.

line number

An integer constant, variable, EQUATE or expresssion that contains the offset or position of the line of text to include in the display. If omitted, line number defaults to the value of the TopLine property.

The DisplayPage method displays a new page from the file. The display includes the line at line number, or the line specified by the TopLine property, if line number is omitted.

Example:

MyViewerClass.Reset PROCEDURE(*STRING Filename)

 CODE

 FREE(SELF.DisplayQueue)

 DISPLAY(SELF.ListBox)

 PARENT.Reset(Filename)

 SELF.TopLine=1

 SELF.DisplayPage

 SELECT(SELF.ListBox,1)

See Also:     TopLine