EasyManua.ls Logo

Commodore Plus 4 - Page 36

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...
84
The
BASIC
Language
them
OPEN
leads
to
errors.
Note
that
you
can
have
only
10
files
OPENed
at
a
time.
Parameter:
logical
file
number
The
logical
file
number
must
be
the
same
number
you
used
to
OPEN
the
file.
The
logical
file
number
has
no
relation
to
the
file
itself;
you
can
use
any
number
between
1
and
255
as
long
as
you
use
the
same
number
in
commands,
such
as
OPEN
and
CLOSE,
that
refer
to
the
file.
Example:
10
OPEN
4,4,7
Opens
access
to
the
printer.
20
nTPUTX$,Y$
30
PRI1TT
#4,
X$,
Y$
Prints
the
values
input
for
X$
and
Y$.
40
CLOSE
4
Closes
access
to
the
printer.
CLR
Abbr.
cL
Clears
the
values
of
all
variables
without
otherwise
affecting
the
current
program.
All
numeric
variables
are
reset
to
zero,
and
all
text-string
variables
are
reset
to
a
null
string.
The
CLR
command
is
automatically
executed
when
you
issue
a
NEW
or
RUN
command.
CLR
is
also
executed
when
you
edit
a
program,
which
is
why
you
cannot
use
CONT
to
resume
program
execution
after
you
edit
the
program.
CMD
Abbr.
cM
CMD
file
number,
output
list
Interrupts
the
normal
flow
of
output
to
the
screen
and
sends
the
output
to
a
different
device,
such
as
the
printer
or
a
data
file.
The
device
or
file
must
first
be
accessed
by an
OPEN
command.
Parameters:
logical
file
number,
list
of
output
items
1.
The
logical
file
number
must
be
the
same
number
you
used
in
the
OPEN
command
to
access
the
file.
2.
The
list
of
output
items
is
optional.
It
can
include
numeric
and
string
expres
sions
separated
with
commas
or
semicolons,
just
as
a
PRINT
command.
Examples:
10
OPEN
4,4
Opens
access
to
the
printer.
20
CMD
4,"THIS
IS
MY
PROGRAM"
Directs
output
to
printer
and
prints
a
heading.
30
LIST
Lists
program
to
printer
under
heading.

Other manuals for Commodore Plus 4

Related product manuals