SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manualā526355-004
9-133
WITH
WITH
The WITH statement indicates which taskidās attributes are returned through the
#TASK... intrinsics.
taskid-exp
specifies an integer expression representing a taskid number whose task attributes
are returned for all subsequent #TASK... intrinsic references.
Considerations
For a complete explanation of each #TASK... intrinsic, see the string intrinsic definitions
in Pound Sign # on page 9-144.
Examples
These examples show the WITH statement.
WITH taskid-exp
?PROC TaskShow { TaskNumber }
{---------------------------}
PARM tasknumber;
WITH tasknumber;
IF #TASKPAGENO THEN BEGIN { if window exists then display that page
PAGE #TASKPAGENO;
RETURN;
END;
PAGE 3; { otherwise build window on page 3
WINDOW TaskNumber;
?PROC ScrollWindow (tid,n)
{--------------------------------------}
PARM tid;{taskid of window to page
PARM n;{ "n" lines to scroll +/-
WITH tid;{ get
"with" taskid
IF NOT #TASKPAGENO THEN RETURN;{no window on taskid
PAGE #TASKPAGENO;{goto window page
LINE #TASKLINE, #TASKCOL;{position window
WINDOW tid NOFRAME{scroll window
"n" lines
SIZE #TASKWIDTH, #TASKHEIGHT
CACHE INDEX #TASKCACHELINE + n;