AMSTRAD cpc 6128 User Instruction page 100

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

I
BAN KW R I T E stores a string into the current record. The current record is then
incremented to point at the record after the one that has just been written, ready for
the next operation. Its syntax is:
IBANKWRITE,@r%,a$
.... Of ....
IBANKWRITE,@r%,a$,n
.... where r % is an integer variable in which a code is returned giving information
about the operation.
a
$
is a string variable containing the characters to be written
into the record. In the first of the two examples, the record is the current record. In the
second example, the optional parameter n specifies the record to be written to.
I
BAN K REA 0 examines the current record, and returns its contents in a string. The
current record is then incremented to point at the record after the one that has just
been read, ready for the next operation. Reading the contents of a record does not
change it, so the record can be read over and over again. The syntax for
I
BAN K REA 0
is:
IBANKREAD,@r%,a$
.... or ....
IBANKREAD,@r%,a$,n
.... where r% is an integer variable in which a code is returned giving information
about the operation.
a
$
is a string variable into which the contents of the record is
read. In the first of the two examples, the record is the current record. In the second
example, the optional parameter n specifies which record is to be read from.
The last command is
I
BAN K FIN D. This command searches through. the records
trying to find a particular string. Ifthe string is found, then the number ofthe record
in which it is found, is returned. The syntax for
I
BAN K FIN 0 is:
IBANKFIND,@r%,a$
.... or ....
IBANKFIND,@r%,a$,n
.... or ....
IBANKFIND,@r%,a$,n,m
Foundation Course
Chapter 1 Page 87

Advertisement

Table of Contents
loading

Table of Contents