Chapter6 Shortcuts - Sharp PC-1403 Operation Manual

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

Advertisement

101
Any one of the following
characters can be used: A, S, 0, F, G, H,
J,
K, L, •, Z, X,
C, V, B,
N,
M,
and
SPC.
Notice
that
these
are the
keys
in
the
bottom two rows of
the
alphabetic portion of the
keyboard.
Note:
To execute
the
program, instead of typing RUN 80
or
GOTO
10,
you need only
press
the ~
key
and then
the letter
used
as a label. In
the above
example,
pressing
~
and then
'B'
would
cause
'SECOND'
to
appear
on the
display.
When DEF is used to execute a
program,
variables and mode settings are
affected in
the
same way as
when
GOTO is
used.
See Chapter 8 for details.
Often you will
want to store several different programs
in the
computer
memory
al one
time.
(Remember that each must have
unique
line numbers.)
Normally,
to
start a
program with a
RUN or GOTO
command,
you need to remember the
beginning line
number
of
each
program
(see
Chapter
8). But,
there is
an easier way! You can label
each program with a letter
and execute the program using only two
keystrokes. This is
how to label
a
program and
execute
it
using
DEF:
Note:
Put a label on the
first line
of
each program that
you want to reference.
The
label
consists
of
a
single
character
in quotes,
followed by a colon ( : ).
10:
"A":
PRINT
"FIRST"
20:
END
30:
"B":
PRINT
"SECOND"
40:
END
The DEF Key and Labeled
Programs
This chapter discusses the additional feature which
can
eliminate
unnecessary typing-
the ~\key.
(DEF is
short
for
"DEFINE".)
The
computer includes several features which make
programming
more convenient by
reducing
the number of keystrokes
required
to
enter
repetitive
material.
One such feature is in the availability of abbreviations for verbs
and
commands
(see
Chapter 8).
'
'
'
CHAPTERS
.
.
SHORT CUTS
. : '
Short Cuts

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents