HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

4-: 13
30 !Control transfers to line 200
.
.
.
200 Error handler: !Start of error handling routine
.
.
.
CLEAR FORM
The CLEAR FORM statement sets the contents of all fields on the currently
displayed form to blanks or another default value. This statement is
used with JOINFORM as well as VPLUS, but the DEFAULT clause is ignored
when using JOINFORM. If there is no active form, executing a CLEAR form
causes a run-time error.
Syntax
CLEAR FORM [
default_clause
]
Parameters
default_clause
The optional keyword DEFAULT assigns the initial values
from the VPLUS form file to each field. The correct
syntax is:
{DEFAULT }
[WITH] {DEFAULTS}
Examples
The following examples show the use of the CLEAR FORM statement.
500 CLEAR FORM
510 CLEAR FORM DEFAULT
530 CLEAR FORM WITH DEFAULT
CLOSE FORM
CLOSE FORM closes the currently active form. This statement is used with
both JOINFORM and VPLUS.
When an VPLUS form is active, the form file is also closed. CLOSE FORM
does not close JOINFORM files. When execution of the CLOSE FORM
statement is complete, the cursor is at the top of display memory and
memory lock, format lock, and block mode are off.
When CLEARALL, CLEARREST, or REMAIN are not specified, the form is closed
by deleting the individual lines of the form. The contents of display
memory above and below the form are not deleted. When the form is
deleted, the contents of display memory that follows the form are
scrolled into the area of display memory that previously contained the
form.
Syntax
[{;} ]
[{,} CLEARALL]
CLOSE FORM [CLEARREST ]
[REMAIN ]
Parameters
CLEARALL Specifies that the form should be deleted from the
screen by placing the cursor at the home position and
clearing all of display memory.
CLEARREST Specifies that the form should be deleted from the