EasyManua.ls Logo

Radio Shack TRS-80 PC-3 - Page 215

Radio Shack TRS-80 PC-3
289 pages
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...
APPENDIX C FORMATTING OUTPUT
It
is
sometimes
important
or
useful
to
control
the
format
as
well
as
the
content
of
output.
The
PC-3
Pocket Computer controls
display formats
with
the USING verb. This verb allows
you
to
specify:
" The
number
of
digits
" The location
of
the decimal
point
" Scientific
notation
format
" The
number
of
string characters
These
diffrerent
formats
are
specified
with
an
"output
mask". This mask may
be
a string constant
or
a string variable:
10: USING
"####"
20:
M$
=
"&&&&&&"
30: USING
M$
When the USI NG verb
is
used
with
no mask, all special
formatting
is
cancelled.
40: USING
A USING verb may also
be
used
within
a
PRINT
statement:
50:
PRINT
USING
M$,
N
Wherever a USING verb
is
used,
it
will
control
the
format
of
all
output
until
a new USING verb
is
encountered.
218

Table of Contents

Related product manuals