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

f: 2
Syntax
CLEAR FORM [[WITH] DEFAULT[S]]
Examples
150 CLEAR FORM !Clears all fields
CLOSE FORM
CLOSE FORM deactivates and erases the form that is currently active. If
no option is specified, the form is erased by deleting all lines occupied
by the form, so the lines following the form are moved up on the screen.
Use the CLEARREST option to clear the form by clearing display memory
from the first line of the form to the end of display memory. Use the
CLEARALL option to clear the form by clearing all of display memory. Use
the REMAIN option to deactivate a form without erasing it.
If the cursor is in the form when CLOSE FORM is called, it is positioned
to the line that followed the form. If the cursor is outside of the
form, it is positioned to the same line again after the form is deleted.
If no form is active, CLOSE FORM returns immediately without performing
any action.
Syntax
[{;} ]
[{,} CLEARREST]
CLOSE FORM [CLEARALL ]
[REMAIN ]
Examples
90 CLOSE FORM
100 CLOSE FORM ;CLEARREST
110 CLOSE FORM ;CLEARALL
120 CLOSE FORM ;REMAIN
CURSOR
The CURSOR statement positions the terminal cursor within an active
JOINFORM. When positioning the cursor while a JOINFORM is active two
parameters must be supplied. The first parameter is either CFLD, IFLD,
OFLD, SETCFLD, SETIFLD, or SETOFLD. This parameter specifies the type of
field that the cursor is being moved into. The second argument is the
number of the field of that type on the form. 'CURSOR OFLD (5)' means
"position the cursor to the fifth output field within the defined output
order of the active form". The SETCFLD, SETIFLD, and SETOFLD parameters
set the internal field pointer, as do the CFLD, IFLD, and OFLD
parameters, but they do not move the cursor. A subsequent INPUT, DISP,
or PRINT statement will move the cursor to the desired field before the
input or output operation takes place. There is a performance
improvement because the cursor is not moved. CFLD stands for cursor
field and IFLD stands for input field.
The IFLD, OFLD, CFLD, SETCFLD, SETIFLD, and SETOFLD options of the CURSOR
statement cannot be executed unless a JOINFORM is active.
Syntax
{IFLD }
{OFLD }
{CFLD }
CURSOR {SETIFLD} (
field_number
)
{SETOFLD}
{SETCFLD}
Parameters
IFLD, OFLD, A keyword that specifies the type of field the cursor
CFLD moves into.
SETIFLD, A keyword that sets the internal field pointer for the