EasyManua.ls Logo

Commodore 128D - Page 276

Commodore 128D
427 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
GETKEY
—Receive
buffered
input
data
from
the
keyboard,
one
character
at
a
time
and
wait
for
a
key
to
be
pressed
GETKEY
variable
list
The
GETKEY
statement
is
very
similar
to
the
GET
statement.
Unlike
the
GET
statement,
GETKEY
waits
for
the
user
to
type
a
character
on
the
keyboard
if
the
keyboard
buffer
is
empty.
This
lets
the
com
puter
wait
for
a
single
character
to
be
typed.
This
statement
can
be
executed
only
within
a
program.
EXAMPLE:
10
GETKEY
A$
This
line
waits
for
a
key
to
be
pressed.
Typing
any
key
continues
the
program.
10
GETKEY
A$,B$,C$
This
line
waits
for
three
alphanumeric
characters
to
be
entered
from
the
keyboard.
u
u
u
u
u
LJ
U
GET#
—Receive
input
data
from
a
logical
channel
such
as
a
tape,
disk
or
RS232
GET#
file
number,
variable
list
This
statement
inputs
one
character
at
a
time
from
a
previously
opened
file.
Otherwise,
it
works
like
the
GET
statement.
This
state
ment
can
be
executed
only
within
a
program.
EXAMPLE:
10
GET#1,A$
u
u
u
LJ
This
example
receives
one
character,
which
is
stored
in
the
variable
A$,
from
file
number
1.
This
example
assumes
that
file
1
was
previously
opened.
See
the
OPEN
or
DOPEN
|
J
statement.
LJ
U
268
BASIC
7.0
ENCYCLOPEDIA—Basic
Commands
and
Statements
LJ
U
U
u

Table of Contents

Other manuals for Commodore 128D

Related product manuals