Sharp PC-1403 Operation Manual page 182

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

Advertisement

176
The
W
key may
be read when
the
program
is
started
by pressing the
IQgfJ
W
keys.
Lines 40 and beyond contain tests
for
the
key
and
the
actions
to be taken (for example:
40 PRINT A$). On first executing the program, the value of INKEY$ is
null,
since the
last key pressed was
I
ENTER
I
.
• If an INKEY$
command is
written at
the beginning
of
the program,
the start key may
be read
(by
the INKEY$
command)
when
the
program
is started.
For example, in
the following program
10"Z":
Z$=lNKEY$
INKEY$ is a
string
pseudovariable which
has
the
value
of the
last
key
pressed on
the
keyboard.
lENTERJ'
~
'
(SHtFTI
'~
'~
.cn
.rr;
'CB
'BJ
'~'
~
,
and scientific function
keys
all
have
a value of
null. IN KEY$ is
used to respond
to the pressing of individual
keys
without waiting
for the
ENTER
key to end
the
input.
5 WAIT 50
10
A$=1NKEY$
20 B=ASC A$
30 IF 8=0 THEN GOTO 10
40 IF B
...
1 INKEY$
Pseudovariables are a
group of
functions
which take
no
argument
and
are
used li
k
e
simple
variables
wherever
required.
Pseudovar
i
ables
FUNCTIONS
Functions
Pseudovarlables

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents