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

4-: 21
RECSIZE These clauses can be in any order.
FILESIZE STATUS
num_expr1
Record length. If positive, each record has
r
words.
If
r
is negative, each record has
r
bytes. If not
specified, and file is type BASIC DATA, each record has
256 bytes (128 words).
num_expr2
File size; maximum number of records in file. Cannot
change after the file is created. The default is
established by the operating system.
num_var
If the CREATE statement successfully creates the file,
it sets this variable to zero; otherwise, it sets it to
a nonzero value.
Examples
The following examples show the use of the CREATE statement.
10 CREATE ASCII "File1",RECSIZE=-100,FILESIZE=1000,STATUS=File1stat
20 CREATE "File2.mktg",FILESIZE=2500
30 CREATE "File3.lab.hp",RECSIZE 300,FILESIZE 5000,STATUS=Created
40 CREATE ASCII "File4",STATUS=Success
50 CREATE BINARY Binfile
60 CREATE BINARY File5,RECSIZE=-80,FILESIZE=5000,STATUS=Created
CURSOR
The CURSOR statement is used to position the cursor and to set display
enhancements. The actions specified in the cursor-item list are carried
out left to right. Any error in a list of actions causes execution to
terminate. There are three pointers that JOINFORM maintains. These are
the input, output, and cursor pointers. Setting the input pointer also
sets the cursor pointer. Setting the cursor pointer does not change the
input or output pointers. Reading a variable from a JOINFORM with the
INPUT or ENTER statement advances the input pointer. The order of the
input and output fields is defined when the form is created with the
JOINEDIT program. The IFLD, OFLD, CFLD, SETIFLD, SETOFLD, and SETCFLD
functions are allowed only while a JOINFORM is active.
Syntax
CURSOR
cursor_item_list
Parameters
cursor_item_
A list containing one or more unique selections from the
list
following options, separated by commas or semicolons.
[{,} ] {,} {,}
Row
[{;}
Col
] {;}
Col
(
Enhance_string
{;}
num_chars
)
{IFLD }
{OFLD }
{CFLD }
{SETIFLD} (
field
)
{SETOFLD}
{SETCFLD}
Row
Specifies the row display memory coordinate. This
coordinate must be a numeric expression, variable, or
constant.
Col
Specifies the column display memory coordinate. This
coordinate must be a numeric expression, variable, or
constant.
enhance_string
A quoted string of characters, or a string variable
specifying the display enhancement:
* h or H: Half-Bright
* i or I: Inverse
* b or B: Blinking