HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
f- 3
SETOFLD, type of field indicated.
SETCFLD
field_number
The number of the field that the cursor will move to.
Examples
100 CURSOR OFLD (35) !Moves cursor to output field 35.
110 CURSOR SETIFLD (4) !Sets the input field pointer to field 4.
TFLD
TFLD is a built-in numeric function that returns the field number of the
last input field accessed in the form. The cursor pointer is moved
either by a CURSOR IFLD(), CFLD(), or an INPUT statement.
NOTE The actual cursor position and fieldnum returned to TFLD are only
identical when the fields were walked through using the RETURN key.
The TAB key moves the cursor to the next field (or the previous
field when BACKTAB is pressed) in screen order. This is not
recognized by TFLD since TAB and BACKTAB are local to the terminal.
TFLD also does not recognize moving the cursor using the cursor
positioning keys.
TFLD returns zero if executed when no JOINFORM is active.
Syntax
TFLD
PRINT and DISP
PRINT and DISP are standard HP Business BASIC/XL statements. Their
syntax is exactly the same for normal output and output to JOINFORM.
However, if a form is active, HP Business BASIC/XL calls a special forms
output routine that behaves like a PRINT or DISP statement on the HP260
does. If a ", " is used to separate the items, each item is displayed in
a separate field. If a "; " is used to separate them, then the output is
buffered and displayed when a ", " is found or the statement is
completed. The first field that an item is to be displayed in is defined
by the output field pointer. The output field pointer can be positioned
with the CURSOR OFLD statement. After an item is displayed in a field,
the output field pointer is incremented.
The syntax for the PRINT and DISP statements are in chapter 4.
LDISP
The result of an LDISP statement depends on whether a form is active.
When no JOINFORM is active, the current line is cleared from the current
cursor position to the end of the line. Output of the values of the
output_item
begins at the current cursor position on the screen. If the
output requires more than the number of characters remaining on the
cleared line, additional lines on the screen are used. However, the
additional lines are not cleared before character output begins.
If a JOINFORM is active, the form is then inactivated. The cursor is
repositioned to the first column of the first line following the form.
Output then proceeds as if no JOINFORM were active. Following output,
the cursor does not return to its previous position in the now inactive
form. If the cursor is already outside the form, LDISP behaves as if no
JOINFORM were active.