HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
4- 14
screen by placing the cursor at the first line of the
form, and clearing display memory from that position to
the end. The area of display memory above the form is
not affected.
REMAIN Specifies that the form should be left on the screen.
It is unprotected after it is closed.
Examples
The following statements show the use of the CLOSE FORM statement.
200 CLOSE FORM !FORM is cleared from the screen
210 CLOSE FORM ;REMAIN !FORM is left on the screen
220 CLOSE FORM ,REMAIN !FORM is left on the screen
230 CLOSE FORM !FORM is cleared from the screen
240 CLOSE FORM ;CLEARREST !Display memory is cleared from the
245 !first line of the form to the end
250 CLOSE FORM :CLEARALL !All of display memory is cleared
If REMAIN is entered preceded by a "," HP Business BASIC/XL will replace
it with a ";".
COM
The COM statement declares a common area. The common area is a global
data area that is first declared in the main program. One or more
variables can be declared in each declared common area. Each common
variable in a COM area declared in the main program unit is accessible
within the main program unit and in all called procedures or functions
that declare the common area in which the variable occurs. Unlike local
variables, the value of a common variable is retained following the exit
from a called procedure or function. A new common area can also be
declared in a called procedure or function if the GLOBAL OPTION
SUBPROGRAM NEWCOM or GLOBAL OPTION MAIN NEWCOM is used in the main
program area preceding the procedure or function. New common areas
declared in these routines are allocated when first encountered during
program execution and can be referenced in any routine called from that
routine. The common area is deallocated when the routine in which it was
allocated completes execution.
Syntax
COM [/
identifier
/]
type_list
[,
type_list
]...
Parameters
identifier
Name of common area. If an identifier is specified,
the declared common area is "labeled" with the name
of the identifier. If an identifier is not
specified, then the common area is referred to as
the unnamed common area. You can have a maximum of
ten named commons and one unnamed common.
COM statements in different program units with the
same label refer to the same common area and unnamed
COM statements refer to the unnamed common area.
This identifier is truncated to eight characters.
{[
type
]
num_com_item
[,
num_com_item
]...}
type_list
{
non_num_com_item
}
type
One of the following:
SHORT INTEGER
INTEGER
SHORT DECIMAL
DECIMAL
SHORT REAL
SHORT
REAL
unspecified