AMSTRAD cpc 6128 User Instruction page 104

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

Advertisement

I BAN K FIN D
will start at the current record, and will work its way through the
records until it reaches the searched-for string, or the end ofthe second 64K in which
the records are stored.
It is possible to specify therecord number at which to start from, by including a record
number at the end of the command.
A further record number, after the starting record number, can be included to specify
the record at which to end the search.
I BAN K FIN D
can be used to look for a string which does not lie at the start of a
record. To do this, C H R
$ (
e )'s are used in the character positions before the
significant characters to be searched for. The
CH R
$ ( e)'s will be treated as
'wildcards' (like ?'s in
CP/M
filenames) which means that they count as 'any
character'. An example of this would be:
a$=STRING$(10,0)+IFRED"
IBANKFIND,@r%,a$,0
This would find the first occurrence of the word" F RED" (lying between the eleventh
and fourteenth character positions). The first ten characters could contain a phone
number or some other information that
I BAN K FIN D
would ignore.
The number of the record in which the string was found is placed in the integer
variable r
%
used for the return code (if the word" F RED" was found), otherwise the
return code will contain - 2 .
Further details ....
Further information about the BANK MANAGER will be found in Chapter 8, and
you should study parts 13 and 14 of Chapter 7 on the subject of using RSX's.
Finally, check that you have observed the following warnings given at the beginning
of this manual, in the section entitled 'IMPORTANT':
OPERATION NOTES 1,2,3,9
Foundation Course
Chapter 1 Page 91

Advertisement

Table of Contents
loading

Table of Contents