Searching Using A Program - Casio FX-730P Owner's Manual

Table of Contents

Advertisement

7-8 Searching Using
a
Program
As long as the input data consists of only two items such as names and telephone
numbers, it will not be particularly inconvenient to search by manual operation
using the
~
key as described in the previous sections. However, if the amount
of data increases and the input items also increase to three, four or more, the
length of a record will exceed 24
characters.
It
will then become necessary to
move the display with the
~
key or the cursor rrwvement key in order to call
the desired data.
This type of mass data can be handled easily if data is searched by using a BASIC
program
.
We will introduce a search method with a program using the data mentioned in
the previous section (see page
179).
This method can also be applied easily to
data of three items or more.
• Outline of the Program
If this program is executed
,
the request "Name?" is displayed
.
If we enter the
name of the person whose telephone number is to be searched, the telephone
number will be displayed if it is stored in the DAT A
BANK.
If it is not
stored,
"
No Data!!" will be displayed.
Since this program is for displaying only, specify the
MEMO
IN
mode(§!!~)
to
enter the naines or telephone numbers.
Program List
10 DIM Z$C5l
20 RESTORE:j:j:
30 BEEP
INPUT "Name"
,
$
40 IF $="" THEN 30
'
50 FOR J=1 TO 5
60 Z$CJ)= MID$CJ*7-6,7l
70 NEXT J
80
F=
0
90 RESTORE:j:j: Z$C 1 l+Z$C2l+Z$C3l+Z$C4l
+Z$C5l,1,140
195

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents