SeeView Manual

HP NonStop SeeView Manual526355-004
5-1
5 SeeView Language Elements
This section discusses the SeeView language and includes several programming
examples. The section is primarily for those who want to write SeeView scripts.
SeeView language elements are the conceptual components that make up the
SeeView programming language. These elements include statements, sections,
procedures, menus, variables, intrinsics, operators, and expressions.
Statements
Section 9, SeeView Statements and Script Symbols, presents all the SeeView
statements alphabetically and describes them in detail. You can use SeeView
statements in the following basic ways:
Statement Termination: To terminate statements, use semicolons.
Conditional Execution: To execute statements conditionally, use the IF, WHILE,
or DO...UNTIL statements.
Compound Statements: To group statements together into a compound
statement, delimit statements with balanced BEGIN...END pairs. For example:
IF condition THEN
BEGIN
statement;
statement;
...
END;
Comments: To add comments to the current line, type a left brace character and
then type your comments to the end of the line:
{ this is a comment
Iteration: To execute statements repetitively, use the FOR, WHILE, or DO...UNTIL
statements. For example:
FOR 5 DO { The following statement is executed 5 times.
BEGIN
statement;
statement;
END;
Sources: To input statements to the SeeView interpreter from different sources,
use window sills, menu productions, EDIT files, message caches, and virtual
windows on the Help page. (Section 7, SeeView Interpreter Interface, tells you how
to use these input sources.)