SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-22
BEGIN
BEGIN
BEGIN marks the beginning of a compound statement. You typically use the BEGIN
term in iteration or conditional statements when a group of statements is interpreted.
statement
specifies any SeeView statement. The term compound-statement refers to the
block of statements delimited by the BEGIN .. END; delimiters. A compound
statement can appear anywhere a simple statement can appear. Consider:
IF condition THEN statement
It also means:
IF condition THEN compound-statement
Considerations
You can use nested compound statements.
Example
This example displays nested compound statements:
BELL
The BELL statement sounds the audible alarm on the terminal device associated with
the SeeView program.
BEGIN statement; [ statement;...] END
VAR width:=20, height:= 12;
TASK edit STARTUP "MYFILE;LIST ALL"
PAGE 1; CLEAR;
FOR 2 DO BEGIN {Build eight Editor windows on page 1
FOR 4 DO BEGIN
WINDOW edit SIZE width,height;
RIGHT:width;
END;
DOWN:height; {Note last move wraps around screen
END;
BELL