138
• Maximum Number of Registrable Records
You may declare the maximum number of records registrable in a data file by using the
RECORD option in the OPEN statement, as shown below.
OPEN "work.DAT" AS #10 RECORD 50
FIELD #10,13 AS code$,5 AS price$
The above program allows you to write up to 50 records in the data file named
work.DAT.
If the statement below is executed following the above program, a run-time error will
occur.
PUT #10,51
The maximum number of registrable records can be optionally specified only when you
make a new data file. If designated to the already existing data file, the specification will
be ignored without occurrence of a run-time error.
If the BHT-7000/BHT-7500 receives a file with the
XFILE statement, it will automatically
set the maximum number of registrable records to 32,767 for that file.
Other BHT series will make such setting only when it receives a file not existing in the
BHT with the XFILE statement.
Specifying the maximum number of registrable records will not cause the Interpreter to
reserve the memory area.
Commentaires sur ces manuels