SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-87
RETURN
RETURN
The RETURN statement causes the SeeView interpreter to stop executing the current
section or procedure and returns control to the calling procedure or section.
Considerations
•
All procedures and sections contain a logical return after all statements are
executed in the procedure or section. When either a logical or explicit return
occurs, control returns to calling procedure, section, or menu production.
•
In scripts that contain multiple sections and have explicit returns in them, the next
section in the script is executed when a RETURN is encountered.
Example
This example shows the use of the RETURN statement.
RIGHT
The RIGHT statement moves the buffer address right, relative to the current buffer
address. RIGHT and the abbreviation R are synonymous. You can interchange them.
expression
allows for moves greater than one.
char
specifies a single character that you can use to smear expression times in the
indicated direction.
Smear means to use the specified char to mark all locations moved through by
the move operation. For example:
RIGHT:3:# DOWN:3:# LEFT:3:# UP:3:#
RETURN
?PROC CurrentDate
{----------------}
IF #DATE[4:8] = "01/01" THEN BEGIN
MSG (REVERSE) "Happy new year"; BELL;
RETURN;
END;
MSG "Date " & #DATE;
RIGHT R [ : expression [ : char ] ]