Casio FX-795P Owner's Manual page 121

Hide thumbs Also See for FX-795P:
Table of Contents

Advertisement

CHAPTER 8
Convenient DATA BANK Function
Examples of data output before and after rearranging are as follows:
< Before rearranging >
BROWN,
3-B21-1234
ELLIS, #11-g41-ri86
Fa, 86-H21-8602
JONES, 852-931-6221
MILLS. 93-63-2935
SMITH, 6899-92-Lag?
SULLIVAN, 8F8-O59—F 13S
WATTS,
B467 91-3569
YOUNG, 8425-81-Ba39
HOVT , 435-654-4321
gO
A OO
cd he
a
< After rearranging >
BROW, B3-B21-L234
ELLIS, @11-41-rae6
FOS, 86-921-6682
HOYT, 83-G54—-4321
JOHES, G52-W21-6221
MILLS, B3-962-2935
SMITH, 8999-92-Laa7
SULLIVAN, BPS-939-F 132
WATTS, 5467-81-3569
VOUNG, G425-81 -8833
Ge 0 "doh
OB
ty boo
Be
8-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 f= key or the cursor movement 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 213). 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 DATA BANK. If it is not stored,
"No Data!!" will be displayed.
Since this program is for displaying only, specify the MEMO IN mode ({«=[S)) to
enter the names or telephone numbers.
@ Program List
10
DIM
Z$(5)
20
RESTORE#
3@
BEEP
:
INPUT
""Name",$
40
IF
$=""_
THEN
30
5@
FOR
J=1
TO
5
6@
Z$(J)=
MID$( J*7-6,7)
7@
NEXT
J
8@
F=e
96
RESTOREH
2$(1)4+2$(2)4+2$(3)4+Z2$(4)
+Z$(5),1,140
229

Advertisement

Table of Contents
loading

Table of Contents