SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-45
GOODBYE
GOODBYE
The GOODBYE statement logs you off from the SeeView program. All function key
operations are disallowed in the logoff state except the Return key, which you use to
log on. (For more information on logging on, see the HELLO statement.)
When you are logged off, the SeeView program continues to maintain user context,
communicate with user tasks, process user task messages, and cache the user task
messages in a normal manner.
The GOODBYE statement does not execute if any conditions exist that would prevent
you from logging back on, such as:
The absence of windows on the current page
The absence of accessible windows on the current page (For example, the
windows are too small or have no sill and contain glass.)
The existence of windows in edit mode (unless ! is specified)
!
indicates that you want to log off regardless of whether any windows are in edit
mode. Specifying the exclamation mark indicates that you do not care about saving
changes made to edit-mode windows.
Considerations and Examples
You can follow a GOODBYE statement with other SeeView statements, with the
exception of CLEAR, CLEARW, PAGE, and SETPAGE. These statements cause a
run-time error if executed when the SeeView program is in a logged-off state. This
example executes properly:
PAGE 2; CLEAR; WINDOW; GOODBYE;
Example 9-1. Sample SeeView Program
CALL seecolor;
ALTER FRAMEVIDEO ON;
FV HEAD ( Reverse );
FV BODY ( Reverse Dim );
FV FOOT ( Reverse Dim );
FV FOOTNOSILL ( );
FV MENUHEAD ( Reverse Dim );
FV MENUBODY ( Dim );
FV MENUFOOT ( );
FV EDITHEAD ( Reverse );
FV EDITBODY ( Reverse Dim Blink );
ESC "dm"; { emulate function key SF14
GOODBYE [!]