EasyManuals Logo

Sinclair QL User Manual

Sinclair QL
422 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #363 background imageLoading...
Page #363 background image
Using
Multiple
Fies
36
proc
doorder
rem
*****order
new
stock
*****
inquire
use
"ord"
seLect
sto.stockno$=ord.stockno$
print
print
"fast
or
cheap
(f/c)";
;f
Lower(getkeyO)=/lf
Jl
fast
eLse
:
cheap
endi
f
Let
ycode$=scode$
reset
use
II
SUp
ll
Locate
comp$
doform
print
print
IIExpected
delivery
;s
lI;del;"
daysll
cLear
endproc
The procedure cheap finds the supplier with the lowest price, and fast works
in
the same
way
to
find the supplier with the shortest delivery
time.
proc
cheap
rem
*****
f;
nd
cheapest
*****
USe "
or
dl!
Let
pri=pr;ce
Let
comp$=code$
Let
deL=deLivery
aLL
;f
price<pr;
let
pr;=price
let
comp$=code$
let
del=deLivery
endif
endaLL
endproc
proc
fast
rem
*****
fastest
de
Livery
*****
use
"
or
d
ll
let
deL=deLivery
Let
comp$=code$
Let
pri==price
aLL
if
delivery<deL
Let
del=delivery
Let
comp$=code$
Let
pri=pr;ce
end;f
endaLl
endproc
The procedure doform produces the actual order form.
You
should modify
it
to
your
own requirements.
We
shall use a simple version which shows the order details on the
screen.
proc
doform
.
rem
*****
produce
order
form
*****
c Ls
print
print
sup.coname$
print
sup.street$
print
sup.county$
print
sup.
post
codeS
print
print
"PLease
suppLy
";
sto.buyqty;
12/84
c

Other manuals for Sinclair QL

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sinclair QL and is the answer not in the manual?

Sinclair QL Specifications

General IconGeneral
ProcessorMotorola 68008
Clock Speed7.5 MHz
RAM128 KB (expandable to 640 KB)
ROM48 KB
Operating SystemSinclair QDOS
Release Year1984
StorageMicrodrive tape loop
Graphics256x256 pixels, 8 colors
PortsRS-232, ROM cartridge
SoundBeeper (internal speaker)

Related product manuals