SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-74
PAGE
Or you can use a string expression:
VOL #mysubvol
Example
This example shows the OPEN statement.
PAGE
The PAGE statement specifies which terminal page to display and where output from
subsequent SeeView statements appears.
page-exp
specifies an integer expression indicating the terminal page number. page-exp
can range from 1 through the maximum page number returned by the #LASTPAGE
intrinsic. (This value is displayed as m in the “Page n of m” display on line 25.)
Considerations
•
User pages range from 1 through #LASTPAGE. You can programmatically select
the Help page with #LASTPAGE +1. This example summarizes how to
programmatically access the terminal pages in the SeeView environment.
•
The PAGE statement causes both terminal I/O and visual display to appear on the
same terminal page. To select different pages for terminal I/O and visual display
(for example, to display off-screen I/O), use the SETPAGE and SHOWPAGE
statements.
Example
This example shows how to use the PAGE statement.
OPEN fup; { Same as TASK fup :=fup; WINDOW fup
OPEN comint; { Same as TASK comint:=comint; WINDOW comint
OPEN ci:=comint; { Same as TASK ci :=comint; WINDOW ci;
OPEN zoom:=$DATA.X.Y { Same as TASK zoom :=$DATA.X.Y; WINDOW zoom;
PAGE page-exp
PAGE 1;{Select first User Page
PAGE #LASTPAGE;{Select last User Page
PAGE #LASTPAGE + 1{Select the Help Page.
VAR #pages := #PAGESUSED; { #pages is list "1 2 3 4"
WHILE #pages<>"" DO BEGIN { While #pages left,
PAGE #TRIM #pages; { Show each page,
FLUSH; { for 1 second,
WAIT 1,REFRESH; { and refresh windows.
END;