EasyManua.ls Logo

Commodore Plus 4 - Screen windows

Commodore Plus 4
464 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...
58
The
BASIC
Language
INPUT
Abbr.
none
INPUT
string;
input
list
Accepts
your
input
from
the
keyboard
during
program
execution.
The
pro
gram
waits
for
you
to
type
the
input
and
press
the
RETURN
key
before
it
continues.
You
can
add
a
question
to
the
INPUT
command
to
help
the
user
understand
the
type of
input
expected.
Parameters:
"prompt
question";
variable(s)
1.
The
prompt
question,
which
is
optional,
must
be
in
quotes.
If
you
omit
the
prompt,
do
not
put
the
semicolon
before
the
variable.
Do
not
type
a question
mark
at
the
end
of
the
question.
Whether
or
not
you
include
a
prompt
question,
INPUT
displays
a
question
mark
to
indicate
that
keyboard
input
is
expected.
If
you
add
the
prompt
question,
the
automatic
question
mark
is
displayed
at
the
end
of
the
question.
Note:
If
you
do
not
want
a
question
mark
to
be
displayed
for
keyboard
input,
OPEN
the
keyboard
(device
number
0) as
a
file.
Then,
PRINT
your
prompt
(ending
with
a
semicolon)
and
use
INPUT#
to
read
the
keyboard.
2.
The
data
values
you
input
from
the
keyboard
are
assigned
to
the
INPUT
variable..
Use
text-string
variables
for
text
input.
You
can
use
more
than
one
variable
in
an
INPUT
command.
If
you
do,
separate
the
variables
with
commas;
the
semicolon
is
used
only
to
separate
the
prompt
question
(if
there
is
one)
from
the
variables.
If
you
use
more
than
one
variable,
you
must
enter
a
value
for
each
(separated
by
commas)
before
the
program
can
continue.
Otherwise,
a
double
question
mark
will
prompt
for
the
rest
of
the
input.
Example:
10
INPUT
"WHAT'S
THE
DESTINATION";
D$
SO
PRINT
"PACKAGE
TO
";D$
RUN
WHAT'S
THE
DESTINATION?
LONDON
PACKAGE
TO
LONDON
INPUT#
Abbr.
iN
INPUT#
file
number,
input
list
Retrieves
a
data
value
from
an
OPEN
file
or
device
and
assigns
it
to
variables.
INPUT#
works
like
INPUT,
but
instead
of
getting
data
input
from
the
keyboard,
INPUT#
gets
data
from
a
file
or
device.
The
file
or
device
must
have
been
opened
using
the
same
logical
file
number.
See
also
GET#.

Other manuals for Commodore Plus 4

Related product manuals