EasyManua.ls Logo

Commodore 128D - Page 282

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...
INPUT#
When
more
than
one
variable
is
INPUT,
separate
them
6y
commas.
The
computer
asks
for
the
remaining
values
by
printing
two
question
marks
(??).
If
the
RETURN
key
is
pressed
without
INPUTting
a
value,
the
INPUT
variable
retains
the
value
previously
input.
The
INPUT
statement
can
be
executed
only
within
a
program.
EXAMPLE:
10
INPUT
"PLEASE
TYPE
A
NUMBER";A
20
INPUT
"AND
YOUR
NAME";A$
30
PRINT
A$ "YOU
TYPED
THE
NUMBER";A
—Inputs
data
from
a
file
into
the
computer's
memory
INPUT#
file
number,
variable
list
This
statement
works
like
INPUT,
but
takes
the
data
from
a
previously
OPENed
file,
usually
on
a
disk
or
tape
instead
of
the
keyboard.
No
prompt
string
is
used.
This
statement
can
be
used
only
within
a
pro
gram.
EXAMPLE:
10
OPEN
2,8,2
20 INPUT#2,
A$,
C,
D$
This
statement
INPUTS
the
data
stored
in
variables
A$,
C
and
D$
from
the
disk
file
number
2,
which
was
OPENed
in
line
10.
Each
string
must
be
terminated
by
a
return
character,
and
must
be
0-150
characters
long
(the
size
of
the
C128
input
buffer).
u
u
LJ
LJ
LJ
LJ
KEY
—Define
or
list
function
key
assignments
KEY
[key
number,
string]
There
are
eight
function
keys
(F1-F8)
available
to
the
user
on
the
Commodore
128: four
unshifted
and
four
shifted.
The
Commodore
128
allows
you
to
perform
a
function
or
operation
for
each
time
the
specified
function
key
is
pressed.
The
definition
assigned
to
a
key
can
consist
of
data,
or
a
command
or
series
of
commands.
KEY
with
no
parameters
specified
returns
a
listing
displaying
all
current
KEY
assignments.
If
data
is
assigned
to
a
function
key,
that
data
is
dis
played
on
the
screen
when
that
function
key
is
pressed.
The
maxi
mum
length
for
all
the
definitions
together
is
241
characters.
EXAMPLE:
KEY
7,
"GRAPHIC0"
+
CHR$(13)
+
"LIST"
+
CHR$(13)
274
BASIC
7.0
ENCYCLOPEDIA—Basic
Commands
and
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals