SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manualβ€”526355-004
9-30
DELAY
initialization-exp
specifies an optional initialization expression used to initialize the value of the
declared variable.
The initialization-exp can be either an integer expression such as
(5+60/10) or a string expression such as β€œTHE TIME IS” & #TIME.
You can initialize string variables to either a string or integer value. You must
initialize integer variables to an integer value.
String variables declared with no initialization-exp have an initial value
equal to the null string "". Integer variables declared with no initialization-
exp have an initial value equal to minus one (-1).
Example
This example demonstrates how to use the DECLARE statement options:
DELAY
The DELAY statement causes the terminal to delay the processing of its command
string for a specified number of seconds.
seconds
specifies the delay time in seconds.
Considerations
The WAIT statement is preferable to the DELAY statement in all cases except special
terminal testing.
Example
This example demonstrates how to use the DELAY statement:
DEC width := 80,
cols := width/10 + 1,
#names := "CHICAGO NEWYORK SANFRAN LA",
#morenames := #names & " MEMPHIS DALLAS STLOUIS";
DELAY seconds
Note. The DELAY statement delays only the terminal and not the SeeView program itself.
VAR pg:=0;
WHILE (pg:=pg+1) < 7 DO BEGIN {For pages 1->6:
PAGE pg; {Display page "page"
DELAY 2; {wait 2 secs between pages
END;