Sharp PC-1500 Instruction Manual page 90

Hide thumbs Also See for PC-1500:
Table of Contents

Advertisement

All
and
more
about Sharp
PC-1500
at
http://www.PC-1500.info
F.3. CLS (Clear Screen)
The
CLS
statement
erases the
d isp lay
by
turning off
all
of
t
he
dots
on
the
wi
ndow. It
is
used
before
other
statements
to
remove any
n~sidual
data from
the
display. The
cu rsor
is repositioned
to the ieft of
the
screen
by
the
CLS
command
.
Th.c
format is simply
CLS.
Demonstration
Program
Keystrokes:
10
GPRINT "7F7F7F7F7F"
20 CLS
30 PRINT "NEW
INFO"
rnrn~
m
rn
rn
oo
rni
••on
lc:JWW
rn
ruruw
CD
[IJ
CD
Cf]
ISHIH
I
C!J ,
.....
1
rnrn
mmm1
• ., ..
1
G[)[lD[PJ
[jiJITJ!JO 01
lsHIFT
I
c:J
!JO
fTI[ii)
IS ..
CEI
fTI
l...!()
CD
{][]
(SH•rT
I
c:J
l••n•I
F.4.
GCURSOR
The GCURSOA
statement specifies
one of
the·
156
columns
of dots,
available
o
n the
display,
as
the
beginning
column
for
any subsequent
d isplay of
information.
The
format
of the GCURSOR
instruction
is
:
GCU
RSOR
posi tion·expression
where
;
p
osition
-expression
evaluates to a number in the
range O
to
155.
ll'is number
specifies
one o
f
the
156
7·dot
columns o
f
the
display.
NOTE
: If
a position
·expression
results
in
a numl>er
i..vh
ich is less
tha1
) O
or
greater than
155.
an
ERROR
19will
occur.
The
GCURSOR
statement
is
usually used, in
conjunction
with
the
GPRINT
stateme
nt,
fo
r
the
purpose
of
creating
graphic
displays
!this
will be
illustrated
more thoroughly in
the
next soction).
Other types of instructions may lollow
the GCURSOR statement since
this
statement
does
not
write any
informaition.
GCURSOR merely
indicates
in
which column subS:equent
in
formation
\•Jill
be
written.
This
i~
illustrated by
the
following linC?s:
Program
l isting:
10 GCURSOR 50
20 PRINT "A"
30 GCURSOR 80
40
PRINT
26/3
Do not sale this PDF
!!!
88

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents